Skip to content

Commit 2d9017d

Browse files
ahnpnlanh.pham
andauthored
feat(core): remove mocked testing util (#3333)
BREAKING CHANGE: Starting from Jest 27.4, `mocked` has been integrated into Jest repo. Co-authored-by: anh.pham <anh.pham@cm.com>
1 parent 7a9aa61 commit 2d9017d

24 files changed

Lines changed: 12853 additions & 12456 deletions

File tree

e2e/__tests__/__snapshots__/coverage-report.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ exports[`outputs coverage report with \`isolatedModules: false\` 1`] = `
44
-------------------------|---------|----------|---------|---------|-------------------
55
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
66
-------------------------|---------|----------|---------|---------|-------------------
7-
All files | 81.25 | 0 | 33.33 | 90.91 |
7+
All files | 81.25 | 0 | 33.33 | 90.9 |
88
file.js | 100 | 100 | 100 | 100 |
99
jest-isolated.config.js | 0 | 100 | 100 | 0 | 2
1010
other-file.js | 100 | 100 | 100 | 100 |
1111
sum-dependency.ts | 75 | 0 | 0 | 100 | 3
12-
sum.ts | 88.89 | 100 | 50 | 100 |
12+
sum.ts | 88.88 | 100 | 50 | 100 |
1313
-------------------------|---------|----------|---------|---------|-------------------
1414
`;
1515

1616
exports[`outputs coverage report with \`isolatedModules: true\` 1`] = `
1717
-------------------------|---------|----------|---------|---------|-------------------
1818
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
1919
-------------------------|---------|----------|---------|---------|-------------------
20-
All files | 81.25 | 0 | 33.33 | 90.91 |
20+
All files | 81.25 | 0 | 33.33 | 90.9 |
2121
file.js | 100 | 100 | 100 | 100 |
2222
jest-isolated.config.js | 0 | 100 | 100 | 0 | 2
2323
other-file.js | 100 | 100 | 100 | 100 |
2424
sum-dependency.ts | 75 | 0 | 0 | 100 | 3
25-
sum.ts | 88.89 | 100 | 50 | 100 |
25+
sum.ts | 88.88 | 100 | 50 | 100 |
2626
-------------------------|---------|----------|---------|---------|-------------------
2727
`;

0 commit comments

Comments
 (0)