Skip to content

Commit b43cec1

Browse files
committed
chore: update snapshot to avoid time spent
1 parent 20669e9 commit b43cec1

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

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

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
exports[`should work without error 1`] = `
44
"FAIL __tests__/dom.test.js
5-
✕ use toBe compare two div (<<REPLACED>>)
6-
✕ compare span and div (<<REPLACED>>)
5+
✕ use toBe compare two div
6+
✕ compare span and div
77
88
● use toBe compare two div
99
@@ -41,9 +41,11 @@ exports[`should work without error 1`] = `
4141
19 | });
4242
20 |
4343
44-
at Object.toBe (__tests__/dom.test.js:18:41)
44+
at Object.toBe (__tests__/dom.test.js:18:41)"
45+
`;
4546
46-
Test Suites: 1 failed, 1 total
47+
exports[`should work without error 2`] = `
48+
"Test Suites: 1 failed, 1 total
4749
Tests: 2 failed, 2 total
4850
Snapshots: 0 total
4951
Time: <<REPLACED>>

e2e/__tests__/domDiffing.test.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
*
77
*/
88

9-
import {replaceTime} from '../Utils';
9+
import {extractSummary} from '../Utils';
1010
import runJest from '../runJest';
1111

1212
test('should work without error', () => {
1313
const output = runJest('dom-diffing');
1414
expect(output.failed).toBe(true);
15-
expect(replaceTime(output.stderr)).toMatchSnapshot();
15+
const {rest, summary} = extractSummary(output.stderr);
16+
expect(rest).toMatchSnapshot();
17+
expect(summary).toMatchSnapshot();
1618
});

0 commit comments

Comments
 (0)