Skip to content

Commit

Permalink
snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 24, 2022
1 parent 0f1e7df commit f847e8a
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 66 deletions.
120 changes: 60 additions & 60 deletions e2e/__tests__/__snapshots__/coverageReport.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ All files | 87.5 | 100 | 50 | 100 |
exports[`does not output coverage report when html is requested 1`] = `""`;

exports[`generates coverage when using the testRegex config param 1`] = `
"-------------------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------------------------|---------|----------|---------|---------|-------------------
All files | 60 | 0 | 50 | 60 |
coverage-report | 47.36 | 0 | 25 | 50 |
file.js | 100 | 100 | 100 | 100 |
notRequiredInTestSuite.js | 0 | 0 | 0 | 0 | 8-19
otherFile.js | 100 | 100 | 100 | 100 |
sum.js | 87.5 | 100 | 50 | 100 |
sumDependency.js | 0 | 0 | 0 | 0 | 8-12
coverage-report/cached-duplicates/a | 100 | 100 | 100 | 100 |
identical.js | 100 | 100 | 100 | 100 |
coverage-report/cached-duplicates/b | 100 | 100 | 100 | 100 |
identical.js | 100 | 100 | 100 | 100 |
-------------------------------------|---------|----------|---------|---------|-------------------"
"-------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------|---------|----------|---------|---------|-------------------
All files | 60 | 0 | 50 | 60 |
coverage-report | 47.36 | 0 | 25 | 50 |
file.js | 100 | 100 | 100 | 100 |
...nTestSuite.js | 0 | 0 | 0 | 0 | 8-19
otherFile.js | 100 | 100 | 100 | 100 |
sum.js | 87.5 | 100 | 50 | 100 |
sumDependency.js | 0 | 0 | 0 | 0 | 8-12
...d-duplicates/a | 100 | 100 | 100 | 100 |
identical.js | 100 | 100 | 100 | 100 |
...d-duplicates/b | 100 | 100 | 100 | 100 |
identical.js | 100 | 100 | 100 | 100 |
-------------------|---------|----------|---------|---------|-------------------"
`;

exports[`json reporter printing with --coverage 1`] = `
Expand All @@ -69,21 +69,21 @@ Ran all test suites."
`;
exports[`outputs coverage report 1`] = `
"-------------------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------------------------|---------|----------|---------|---------|-------------------
All files | 60 | 0 | 50 | 60 |
coverage-report | 47.36 | 0 | 25 | 50 |
file.js | 100 | 100 | 100 | 100 |
notRequiredInTestSuite.js | 0 | 0 | 0 | 0 | 8-19
otherFile.js | 100 | 100 | 100 | 100 |
sum.js | 87.5 | 100 | 50 | 100 |
sumDependency.js | 0 | 0 | 0 | 0 | 8-12
coverage-report/cached-duplicates/a | 100 | 100 | 100 | 100 |
identical.js | 100 | 100 | 100 | 100 |
coverage-report/cached-duplicates/b | 100 | 100 | 100 | 100 |
identical.js | 100 | 100 | 100 | 100 |
-------------------------------------|---------|----------|---------|---------|-------------------"
"-------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------|---------|----------|---------|---------|-------------------
All files | 60 | 0 | 50 | 60 |
coverage-report | 47.36 | 0 | 25 | 50 |
file.js | 100 | 100 | 100 | 100 |
...nTestSuite.js | 0 | 0 | 0 | 0 | 8-19
otherFile.js | 100 | 100 | 100 | 100 |
sum.js | 87.5 | 100 | 50 | 100 |
sumDependency.js | 0 | 0 | 0 | 0 | 8-12
...d-duplicates/a | 100 | 100 | 100 | 100 |
identical.js | 100 | 100 | 100 | 100 |
...d-duplicates/b | 100 | 100 | 100 | 100 |
identical.js | 100 | 100 | 100 | 100 |
-------------------|---------|----------|---------|---------|-------------------"
`;
exports[`outputs coverage report when text and text-summary is requested 1`] = `
Expand All @@ -94,39 +94,39 @@ Branches : 0% ( 0/4 )
Functions : 50% ( 3/6 )
Lines : 60% ( 12/20 )
================================================================================
-------------------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------------------------|---------|----------|---------|---------|-------------------
All files | 60 | 0 | 50 | 60 |
coverage-report | 47.36 | 0 | 25 | 50 |
file.js | 100 | 100 | 100 | 100 |
notRequiredInTestSuite.js | 0 | 0 | 0 | 0 | 8-19
otherFile.js | 100 | 100 | 100 | 100 |
sum.js | 87.5 | 100 | 50 | 100 |
sumDependency.js | 0 | 0 | 0 | 0 | 8-12
coverage-report/cached-duplicates/a | 100 | 100 | 100 | 100 |
identical.js | 100 | 100 | 100 | 100 |
coverage-report/cached-duplicates/b | 100 | 100 | 100 | 100 |
identical.js | 100 | 100 | 100 | 100 |
-------------------------------------|---------|----------|---------|---------|-------------------"
-------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------|---------|----------|---------|---------|-------------------
All files | 60 | 0 | 50 | 60 |
coverage-report | 47.36 | 0 | 25 | 50 |
file.js | 100 | 100 | 100 | 100 |
...nTestSuite.js | 0 | 0 | 0 | 0 | 8-19
otherFile.js | 100 | 100 | 100 | 100 |
sum.js | 87.5 | 100 | 50 | 100 |
sumDependency.js | 0 | 0 | 0 | 0 | 8-12
...d-duplicates/a | 100 | 100 | 100 | 100 |
identical.js | 100 | 100 | 100 | 100 |
...d-duplicates/b | 100 | 100 | 100 | 100 |
identical.js | 100 | 100 | 100 | 100 |
-------------------|---------|----------|---------|---------|-------------------"
`;
exports[`outputs coverage report when text is requested 1`] = `
"-------------------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------------------------|---------|----------|---------|---------|-------------------
All files | 60 | 0 | 50 | 60 |
coverage-report | 47.36 | 0 | 25 | 50 |
file.js | 100 | 100 | 100 | 100 |
notRequiredInTestSuite.js | 0 | 0 | 0 | 0 | 8-19
otherFile.js | 100 | 100 | 100 | 100 |
sum.js | 87.5 | 100 | 50 | 100 |
sumDependency.js | 0 | 0 | 0 | 0 | 8-12
coverage-report/cached-duplicates/a | 100 | 100 | 100 | 100 |
identical.js | 100 | 100 | 100 | 100 |
coverage-report/cached-duplicates/b | 100 | 100 | 100 | 100 |
identical.js | 100 | 100 | 100 | 100 |
-------------------------------------|---------|----------|---------|---------|-------------------"
"-------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------|---------|----------|---------|---------|-------------------
All files | 60 | 0 | 50 | 60 |
coverage-report | 47.36 | 0 | 25 | 50 |
file.js | 100 | 100 | 100 | 100 |
...nTestSuite.js | 0 | 0 | 0 | 0 | 8-19
otherFile.js | 100 | 100 | 100 | 100 |
sum.js | 87.5 | 100 | 50 | 100 |
sumDependency.js | 0 | 0 | 0 | 0 | 8-12
...d-duplicates/a | 100 | 100 | 100 | 100 |
identical.js | 100 | 100 | 100 | 100 |
...d-duplicates/b | 100 | 100 | 100 | 100 |
identical.js | 100 | 100 | 100 | 100 |
-------------------|---------|----------|---------|---------|-------------------"
`;
exports[`outputs coverage report when text-summary is requested 1`] = `
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`produces code coverage for uncovered files without transformer 1`] = `
"---------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
---------------------|---------|----------|---------|---------|-------------------
All files | 0 | 100 | 0 | 0 |
some-random-file.js | 0 | 100 | 0 | 0 | 8-10
---------------------|---------|----------|---------|---------|-------------------"
"-------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------|---------|----------|---------|---------|-------------------
All files | 0 | 100 | 0 | 0 |
...random-file.js | 0 | 100 | 0 | 0 | 8-10
-------------------|---------|----------|---------|---------|-------------------"
`;

0 comments on commit f847e8a

Please sign in to comment.