Skip to content

Commit

Permalink
jest-snapshot: Improve colors when snapshots are updatable (#9132)
Browse files Browse the repository at this point in the history
* jest-snapshot: Improve colors when snapshots are updatable

* Update CHANGELOG.md

* Trailing spaces in changed lines do not need own bg color

* Improve convertAnsi to test for trailing spaces in common lines

* Make changes requested by Simen and update 2 snapshots

* Fix my mistake when resolving merge conflict in yarn.lock

* Replace 0x0 with 0 to reduce visual noise

* Replace get functions with aSnapshotColor and bReceivedColor

* Replace green with teal as Received color
  • Loading branch information
pedrottimark authored Nov 18, 2019
1 parent 8d0b5e2 commit 6bd4e56
Show file tree
Hide file tree
Showing 6 changed files with 395 additions and 169 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- `[jest-runner]` Warn if a worker had to be force exited ([#8206](https://github.com/facebook/jest/pull/8206))
- `[jest-snapshot]` Display change counts in annotation lines ([#8982](https://github.com/facebook/jest/pull/8982))
- `[jest-snapshot]` [**BREAKING**] Improve report when the matcher has properties ([#9104](https://github.com/facebook/jest/pull/9104))
- `[jest-snapshot]` Improve colors when snapshots are updatable ([#9132](https://github.com/facebook/jest/pull/9132))
- `[@jest/test-result]` Create method to create empty `TestResult` ([#8867](https://github.com/facebook/jest/pull/8867))
- `[jest-worker]` [**BREAKING**] Return a promise from `end()`, resolving with the information whether workers exited gracefully ([#8206](https://github.com/facebook/jest/pull/8206))
- `[jest-reporters]` Transform file paths into hyperlinks ([#8980](https://github.com/facebook/jest/pull/8980))
Expand Down
Loading

0 comments on commit 6bd4e56

Please sign in to comment.