Skip to content

Commit

Permalink
feat(core): remove mocked testing util (#3333)
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

Starting from Jest 27.4, `mocked` has been integrated into Jest repo.

Co-authored-by: anh.pham <anh.pham@cm.com>
  • Loading branch information
ahnpnl and anh.pham committed Mar 13, 2022
1 parent 7a9aa61 commit 2d9017d
Show file tree
Hide file tree
Showing 24 changed files with 12,853 additions and 12,456 deletions.
8 changes: 4 additions & 4 deletions e2e/__tests__/__snapshots__/coverage-report.test.ts.snap
Expand Up @@ -4,24 +4,24 @@ exports[`outputs coverage report with \`isolatedModules: false\` 1`] = `
-------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------------|---------|----------|---------|---------|-------------------
All files | 81.25 | 0 | 33.33 | 90.91 |
All files | 81.25 | 0 | 33.33 | 90.9 |
file.js | 100 | 100 | 100 | 100 |
jest-isolated.config.js | 0 | 100 | 100 | 0 | 2
other-file.js | 100 | 100 | 100 | 100 |
sum-dependency.ts | 75 | 0 | 0 | 100 | 3
sum.ts | 88.89 | 100 | 50 | 100 |
sum.ts | 88.88 | 100 | 50 | 100 |
-------------------------|---------|----------|---------|---------|-------------------
`;

exports[`outputs coverage report with \`isolatedModules: true\` 1`] = `
-------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------------|---------|----------|---------|---------|-------------------
All files | 81.25 | 0 | 33.33 | 90.91 |
All files | 81.25 | 0 | 33.33 | 90.9 |
file.js | 100 | 100 | 100 | 100 |
jest-isolated.config.js | 0 | 100 | 100 | 0 | 2
other-file.js | 100 | 100 | 100 | 100 |
sum-dependency.ts | 75 | 0 | 0 | 100 | 3
sum.ts | 88.89 | 100 | 50 | 100 |
sum.ts | 88.88 | 100 | 50 | 100 |
-------------------------|---------|----------|---------|---------|-------------------
`;

0 comments on commit 2d9017d

Please sign in to comment.