Skip to content

Commit 1051b38

Browse files
committed
update other snapshors using helper
1 parent 52965fa commit 1051b38

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

e2e/__tests__/__snapshots__/watchModeOnlyFailed.test.ts.snap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
exports[`can press "f" to run only failed tests: test results 1`] = `
44
FAIL __tests__/bar.spec.js
55
● bar 1
6+
67
expect(received).toBe(expected) // Object.is equality
8+
79
Expected: "foo"
810
Received: "bar"
11+
912
> 1 | test('bar 1', () => { expect('bar').toBe('foo'); });
1013
| ^
14+
1115
at Object.toBe (__tests__/bar.spec.js:1:37)
1216
1317
PASS __tests__/foo.spec.js
@@ -16,12 +20,17 @@ PASS __tests__/foo.spec.js
1620
exports[`can press "f" to run only failed tests: test results 2`] = `
1721
FAIL __tests__/bar.spec.js
1822
✕ bar 1
23+
1924
● bar 1
25+
2026
expect(received).toBe(expected) // Object.is equality
27+
2128
Expected: "foo"
2229
Received: "bar"
30+
2331
> 1 | test('bar 1', () => { expect('bar').toBe('foo'); });
2432
| ^
33+
2534
at Object.toBe (__tests__/bar.spec.js:1:37)
2635
2736
`;

e2e/__tests__/__snapshots__/watchModeUpdateSnapshot.test.ts.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,21 @@
33
exports[`can press "u" to update snapshots: test results 1`] = `
44
FAIL __tests__/bar.spec.js
55
✕ bar
6+
67
● bar
8+
79
expect(received).toMatchSnapshot()
10+
811
Snapshot name: \`bar 1\`
12+
913
Snapshot: "foo"
1014
Received: "bar"
15+
1116
> 1 | test('bar', () => { expect('bar').toMatchSnapshot(); });
1217
| ^
18+
1319
at Object.toMatchSnapshot (__tests__/bar.spec.js:1:35)
20+
1421
› 1 snapshot failed.
1522
Snapshot Summary
1623
› 1 snapshot failed from 1 test suite. Inspect your code changes or press \`u\` to update them.
@@ -20,6 +27,7 @@ Snapshot Summary
2027
exports[`can press "u" to update snapshots: test results 2`] = `
2128
PASS __tests__/bar.spec.js
2229
✓ bar
30+
2331
› 1 snapshot updated.
2432
Snapshot Summary
2533
› 1 snapshot updated from 1 test suite.

0 commit comments

Comments
 (0)