Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Oct 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading