Skip to content

Commit

Permalink
expect: Improve report when mock-spy matcher fails, part 2 (#8649)
Browse files Browse the repository at this point in the history
* expect: Improve report when mock-spy matcher fails, part 2

* Update CHANGELOG.md

* Display received number of calls when not equal to returns

* Call printReceivedArgs to enclose in parentheses which have dim color

* Modify printReceivedArgs according to constructive critique

* s/no args/called with no arguments
  • Loading branch information
pedrottimark committed Jul 10, 2019
1 parent a501718 commit b2c9fe3
Show file tree
Hide file tree
Showing 4 changed files with 269 additions and 204 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,7 @@
- `[expect]` Highlight substring differences when matcher fails, part 1 ([#8448](https://github.com/facebook/jest/pull/8448))
- `[expect]` Highlight substring differences when matcher fails, part 2 ([#8528](https://github.com/facebook/jest/pull/8528))
- `[expect]` Improve report when mock-spy matcher fails, part 1 ([#8640](https://github.com/facebook/jest/pull/8640))
- `[expect]` Improve report when mock-spy matcher fails, part 2 ([#8649](https://github.com/facebook/jest/pull/8649))
- `[jest-snapshot]` Highlight substring differences when matcher fails, part 3 ([#8569](https://github.com/facebook/jest/pull/8569))
- `[jest-cli]` Improve chai support (with detailed output, to match jest exceptions) ([#8454](https://github.com/facebook/jest/pull/8454))
- `[*]` Manage the global timeout with `--testTimeout` command line argument. ([#8456](https://github.com/facebook/jest/pull/8456))
Expand Down

0 comments on commit b2c9fe3

Please sign in to comment.