Skip to content

Commit

Permalink
#119: Fix issue with xhr no response breaking tests. Release 3.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
archfz committed Aug 20, 2021
1 parent 4b50e60 commit bcd0bca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ directory. You should add `it.only` to the test case you are working on to speed
## Release Notes
#### 3.3.2
- Fix issue with no response on XHR breaking tests. [issue](https://github.com/archfz/cypress-terminal-report/issues/119)
#### 3.3.1
- Fix issue `cy:intercept` not between the allowed configuration options. [issue](https://github.com/archfz/cypress-terminal-report/issues/113)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cypress-terminal-report",
"version": "3.3.1",
"version": "3.3.2",
"description": "Better terminal and file output for cypress test logs.",
"main": "index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/collector/LogCollectCypressXhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ module.exports = class LogCollectCypressXhr {
if (
!isSuccess &&
options.consoleProps.XHR &&
options.consoleProps.XHR.response &&
options.consoleProps.XHR.response.size &&
!this.collectorState.hasXhrResponseBeenLogged(options.consoleProps.XHR.id)
) {
Expand Down

0 comments on commit bcd0bca

Please sign in to comment.