Skip to content

Commit

Permalink
expect: Improve report when assertion fails, part 3 (jestjs#7152)
Browse files Browse the repository at this point in the history
* expect: Improve report when assertion fails, part 3

* Display lines of labeled values as two columns with monospace alignment

* Merge and then update CHANGELOG.md

* Add test for getLabelPrinter

* Include received type in label for toHaveLength matcher

* Fix pretty lint error

* Refactor message function in toContain and toContainEqual

* Align values for toBeCloseTo
  • Loading branch information
pedrottimark authored and captain-yossarian committed Jul 18, 2019
1 parent 4809445 commit c214307
Show file tree
Hide file tree
Showing 5 changed files with 271 additions and 291 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
- `[jest-snapshot]` Enable configurable snapshot paths ([#6143](https://github.com/facebook/jest/pull/6143))
- `[pretty-format]` Support HTMLCollection and NodeList in DOMCollection plugin ([#7125](https://github.com/facebook/jest/pull/7125))
- `[jest-runtime]` Pass the normalized configuration to script transformers ([#7148](https://github.com/facebook/jest/pull/7148))
- `[expect]` Improve report when assertion fails, part 3 ([#7152](https://github.com/facebook/jest/pull/7152))
- `[jest-runtime]` If `require` fails without a file extension, print all files that match with one ([#7160](https://github.com/facebook/jest/pull/7160))
- `[jest-haste-map]` Make `ignorePattern` optional ([#7166](https://github.com/facebook/jest/pull/7166))
- `[jest-haste-map]` Add `getCacheFilePath` to get the path to the cache file for a `HasteMap` instance ([#7217](https://github.com/facebook/jest/pull/7217))
Expand Down
Loading

0 comments on commit c214307

Please sign in to comment.