Skip to content

Commit

Permalink
expect: Improve report when negative CalledWith assertion fails (#8755)
Browse files Browse the repository at this point in the history
* expect: Improve report when negative CalledWith assertion fails

* Add missing argument in printReceivedCalls for LastCalled

* Update CHANGELOG.md

* Remove label argument from printReceivedCalls

* Display equal args with dim color and delete redundant tests
  • Loading branch information
pedrottimark committed Jul 30, 2019
1 parent 1b38e11 commit 88ccda0
Show file tree
Hide file tree
Showing 4 changed files with 341 additions and 205 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -9,6 +9,7 @@
- `[expect]` Improve report when mock-spy matcher fails, part 3 ([#8697](https://github.com/facebook/jest/pull/8697))
- `[expect]` Improve report when mock-spy matcher fails, part 4 ([#8710](https://github.com/facebook/jest/pull/8710))
- `[expect]` Throw matcher error when received cannot be jasmine spy ([#8747](https://github.com/facebook/jest/pull/8747))
- `[expect]` Improve report when negative CalledWith assertion fails ([#8755](https://github.com/facebook/jest/pull/8755))
- `[jest-snapshot]` Highlight substring differences when matcher fails, part 3 ([#8569](https://github.com/facebook/jest/pull/8569))
- `[jest-core]` Improve report when snapshots are obsolete ([#8448](https://github.com/facebook/jest/pull/8665))
- `[jest-cli]` Improve chai support (with detailed output, to match jest exceptions) ([#8454](https://github.com/facebook/jest/pull/8454))
Expand Down

0 comments on commit 88ccda0

Please sign in to comment.