File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
exports [` should work without error 1` ] = `
4
4
"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
7
7
8
8
● use toBe compare two div
9
9
@@ -41,9 +41,11 @@ exports[`should work without error 1`] = `
41
41
19 | });
42
42
20 |
43
43
44
- at Object .toBe (__tests__ / dom .test .js :18 :41 )
44
+ at Object .toBe (__tests__ / dom .test .js :18 :41 )"
45
+ `;
45
46
46
- Test Suites : 1 failed , 1 total
47
+ exports [` should work without error 2` ] = `
48
+ "Test Suites: 1 failed, 1 total
47
49
Tests: 2 failed, 2 total
48
50
Snapshots: 0 total
49
51
Time: <<REPLACED >>
Original file line number Diff line number Diff line change 6
6
*
7
7
*/
8
8
9
- import { replaceTime } from '../Utils' ;
9
+ import { extractSummary } from '../Utils' ;
10
10
import runJest from '../runJest' ;
11
11
12
12
test ( 'should work without error' , ( ) => {
13
13
const output = runJest ( 'dom-diffing' ) ;
14
14
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 ( ) ;
16
18
} ) ;
You can’t perform that action at this time.
0 commit comments