Skip to content

Commit

Permalink
expect, jest-matcher-utils: Display change counts in annotation lines (
Browse files Browse the repository at this point in the history
…#9035)

* expect, jest-matcher-utils: Display change counts in annotation lines

* Update CHANGELOG.md
  • Loading branch information
pedrottimark committed Oct 10, 2019
1 parent f15ada4 commit 8d47ffa
Show file tree
Hide file tree
Showing 8 changed files with 160 additions and 157 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,7 @@
- `[babel-plugin-jest-hoist]` Add `BigInt` to `WHITELISTED_IDENTIFIERS` ([#8382](https://github.com/facebook/jest/pull/8382))
- `[babel-preset-jest]` Add `@babel/plugin-syntax-bigint` ([#8382](https://github.com/facebook/jest/pull/8382))
- `[expect]` Add `BigInt` support to `toBeGreaterThan`, `toBeGreaterThanOrEqual`, `toBeLessThan` and `toBeLessThanOrEqual` ([#8382](https://github.com/facebook/jest/pull/8382))
- `[expect, jest-matcher-utils]` Display change counts in annotation lines ([#9035](https://github.com/facebook/jest/pull/9035))
- `[jest-config]` Throw the full error message and stack when a Jest preset is missing a dependency ([#8924](https://github.com/facebook/jest/pull/8924))
- `[jest-config]` [**BREAKING**] Set default display name color based on runner ([#8689](https://github.com/facebook/jest/pull/8689))
- `[jest-diff]` Add options for colors and symbols ([#8841](https://github.com/facebook/jest/pull/8841))
Expand Down
8 changes: 4 additions & 4 deletions e2e/__tests__/__snapshots__/failures.test.ts.snap
Expand Up @@ -288,8 +288,8 @@ FAIL __tests__/asyncFailures.test.js
expect(received).resolves.toEqual(expected) // deep equality
- Expected
+ Received
- Expected - 1
+ Received + 1
Object {
- "baz": "bar",
Expand All @@ -310,8 +310,8 @@ FAIL __tests__/asyncFailures.test.js
expect(received).rejects.toEqual(expected) // deep equality
- Expected
+ Received
- Expected - 1
+ Received + 1
Object {
- "baz": "bar",
Expand Down
16 changes: 8 additions & 8 deletions packages/expect/src/__tests__/__snapshots__/extend.test.js.snap
Expand Up @@ -3,8 +3,8 @@
exports[`defines asymmetric unary matchers 1`] = `
<d>expect(</><r>received</><d>).</>toEqual<d>(</><g>expected</><d>) // deep equality</>
<g>- Expected</>
<r>+ Received</>
<g>- Expected - 1</>
<r>+ Received + 1</>
<d> Object {</>
<g>- "value": toBeDivisibleBy<2>,</>
Expand All @@ -15,8 +15,8 @@ exports[`defines asymmetric unary matchers 1`] = `
exports[`defines asymmetric unary matchers that can be prefixed by not 1`] = `
<d>expect(</><r>received</><d>).</>toEqual<d>(</><g>expected</><d>) // deep equality</>
<g>- Expected</>
<r>+ Received</>
<g>- Expected - 1</>
<r>+ Received + 1</>
<d> Object {</>
<g>- "value": not.toBeDivisibleBy<2>,</>
Expand All @@ -27,8 +27,8 @@ exports[`defines asymmetric unary matchers that can be prefixed by not 1`] = `
exports[`defines asymmetric variadic matchers 1`] = `
<d>expect(</><r>received</><d>).</>toEqual<d>(</><g>expected</><d>) // deep equality</>
<g>- Expected</>
<r>+ Received</>
<g>- Expected - 1</>
<r>+ Received + 1</>
<d> Object {</>
<g>- "value": toBeWithinRange<4, 11>,</>
Expand All @@ -39,8 +39,8 @@ exports[`defines asymmetric variadic matchers 1`] = `
exports[`defines asymmetric variadic matchers that can be prefixed by not 1`] = `
<d>expect(</><r>received</><d>).</>toEqual<d>(</><g>expected</><d>) // deep equality</>
<g>- Expected</>
<r>+ Received</>
<g>- Expected - 1</>
<r>+ Received + 1</>
<d> Object {</>
<g>- "value": not.toBeWithinRange<1, 3>,</>
Expand Down

0 comments on commit 8d47ffa

Please sign in to comment.