Skip to content

Commit

Permalink
chore: bump to istanbul alphas
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Nov 17, 2019
1 parent 4643178 commit 88c7042
Show file tree
Hide file tree
Showing 20 changed files with 405 additions and 462 deletions.
176 changes: 88 additions & 88 deletions e2e/__tests__/__snapshots__/coverageReport.test.ts.snap

Large diffs are not rendered by default.

62 changes: 31 additions & 31 deletions e2e/__tests__/__snapshots__/coverageThreshold.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ Ran all test suites.
`;
exports[`excludes tests matched by path threshold groups from global group: stdout 1`] = `
-----------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
-----------|----------|----------|----------|----------|-------------------|
All files | 50 | 100 | 50 | 50 | |
apple.js | 0 | 100 | 0 | 0 | 2,3 |
banana.js | 100 | 100 | 100 | 100 | |
-----------|----------|----------|----------|----------|-------------------|
-----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-----------|---------|----------|---------|---------|-------------------
All files | 50 | 100 | 50 | 50 |
apple.js | 0 | 100 | 0 | 0 | 2,3
banana.js | 100 | 100 | 100 | 100 |
-----------|---------|----------|---------|---------|-------------------
`;
exports[`exits with 0 if global threshold group is not found in coverage data: stdout 1`] = `
-----------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
-----------|----------|----------|----------|----------|-------------------|
All files | 100 | 100 | 100 | 100 | |
banana.js | 100 | 100 | 100 | 100 | |
-----------|----------|----------|----------|----------|-------------------|
-----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-----------|---------|----------|---------|---------|-------------------
All files | 100 | 100 | 100 | 100 |
banana.js | 100 | 100 | 100 | 100 |
-----------|---------|----------|---------|---------|-------------------
`;
exports[`exits with 1 if coverage threshold is not met 1`] = `
Expand All @@ -50,12 +50,12 @@ Ran all test suites.
`;
exports[`exits with 1 if coverage threshold is not met: stdout 1`] = `
----------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
----------------|----------|----------|----------|----------|-------------------|
All files | 50 | 100 | 0 | 50 | |
not-covered.js | 50 | 100 | 0 | 50 | 3 |
----------------|----------|----------|----------|----------|-------------------|
----------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------------|---------|----------|---------|---------|-------------------
All files | 50 | 100 | 0 | 50 |
not-covered.js | 50 | 100 | 0 | 50 | 3
----------------|---------|----------|---------|---------|-------------------
`;
exports[`exits with 1 if path threshold group is not found in coverage data 1`] = `
Expand All @@ -74,12 +74,12 @@ Ran all test suites.
`;
exports[`exits with 1 if path threshold group is not found in coverage data: stdout 1`] = `
-----------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
-----------|----------|----------|----------|----------|-------------------|
All files | 100 | 100 | 100 | 100 | |
banana.js | 100 | 100 | 100 | 100 | |
-----------|----------|----------|----------|----------|-------------------|
-----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-----------|---------|----------|---------|---------|-------------------
All files | 100 | 100 | 100 | 100 |
banana.js | 100 | 100 | 100 | 100 |
-----------|---------|----------|---------|---------|-------------------
`;
exports[`file is matched by all path and glob threshold groups 1`] = `
Expand All @@ -100,10 +100,10 @@ Ran all test suites.
`;
exports[`file is matched by all path and glob threshold groups: stdout 1`] = `
-----------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
-----------|----------|----------|----------|----------|-------------------|
All files | 50 | 100 | 0 | 50 | |
banana.js | 50 | 100 | 0 | 50 | 3 |
-----------|----------|----------|----------|----------|-------------------|
-----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-----------|---------|----------|---------|---------|-------------------
All files | 50 | 100 | 0 | 50 |
banana.js | 50 | 100 | 0 | 50 | 3
-----------|---------|----------|---------|---------|-------------------
`;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`code coverage for transform instrumented code 1`] = `
Object {
"covered.js": Object {
"_coverageSchema": "43e27e138ebf9cfc5966b082cf9a028302ed4184",
"_coverageSchema": "1a1c01bbd47fc00a2c39e90264f33305004495a9",
"b": Object {},
"branchMap": Object {},
"f": Object {
Expand Down
38 changes: 19 additions & 19 deletions e2e/__tests__/__snapshots__/findRelatedFiles.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ PASS __tests__/a.test.js
`;
exports[`--findRelatedTests flag coverage configuration is applied correctly 3`] = `
----------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
----------|----------|----------|----------|----------|-------------------|
All files | 100 | 100 | 100 | 100 | |
a.js | 100 | 100 | 100 | 100 | |
----------|----------|----------|----------|----------|-------------------|
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 100 | 100 | 100 | 100 |
a.js | 100 | 100 | 100 | 100 |
----------|---------|----------|---------|---------|-------------------
`;
exports[`--findRelatedTests flag generates coverage report for filename 1`] = `
Expand All @@ -36,13 +36,13 @@ PASS __tests__/b.test.js
`;
exports[`--findRelatedTests flag generates coverage report for filename 3`] = `
----------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
----------|----------|----------|----------|----------|-------------------|
All files | 100 | 100 | 100 | 100 | |
a.js | 100 | 100 | 100 | 100 | |
b.js | 100 | 100 | 100 | 100 | |
----------|----------|----------|----------|----------|-------------------|
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 100 | 100 | 100 | 100 |
a.js | 100 | 100 | 100 | 100 |
b.js | 100 | 100 | 100 | 100 |
----------|---------|----------|---------|---------|-------------------
`;
exports[`--findRelatedTests flag generates coverage report for filename 4`] = `
Expand All @@ -59,10 +59,10 @@ PASS __tests__/a.test.js
`;
exports[`--findRelatedTests flag generates coverage report for filename 6`] = `
----------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
----------|----------|----------|----------|----------|-------------------|
All files | 100 | 100 | 100 | 100 | |
a.js | 100 | 100 | 100 | 100 | |
----------|----------|----------|----------|----------|-------------------|
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 100 | 100 | 100 | 100 |
a.js | 100 | 100 | 100 | 100 |
----------|---------|----------|---------|---------|-------------------
`;
46 changes: 23 additions & 23 deletions e2e/__tests__/__snapshots__/transform.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,36 @@ FAIL __tests__/ignoredFile.test.js
`;

exports[`babel-jest instruments only specific files and collects coverage 1`] = `
------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
------------|----------|----------|----------|----------|-------------------|
All files | 83.33 | 100 | 50 | 80 | |
covered.js | 83.33 | 100 | 50 | 80 | 13 |
------------|----------|----------|----------|----------|-------------------|
------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
------------|---------|----------|---------|---------|-------------------
All files | 83.33 | 100 | 50 | 80 |
covered.js | 83.33 | 100 | 50 | 80 | 13
------------|---------|----------|---------|---------|-------------------
`;

exports[`custom transformer instruments files 1`] = `
----------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
----------|----------|----------|----------|----------|-------------------|
All files | 0 | 0 | 0 | 0 | |
----------|----------|----------|----------|----------|-------------------|
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 0 | 0 | 0 | 0 |
----------|---------|----------|---------|---------|-------------------
`;

exports[`no babel-jest instrumentation with no babel-jest 1`] = `
------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
------------|----------|----------|----------|----------|-------------------|
All files | 83.33 | 100 | 50 | 80 | |
covered.js | 83.33 | 100 | 50 | 80 | 13 |
------------|----------|----------|----------|----------|-------------------|
------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
------------|---------|----------|---------|---------|-------------------
All files | 83.33 | 100 | 50 | 80 |
covered.js | 83.33 | 100 | 50 | 80 | 13
------------|---------|----------|---------|---------|-------------------
`;

exports[`transformer-config instruments only specific files and collects coverage 1`] = `
"------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
------------|----------|----------|----------|----------|-------------------|
All files | 83.33 | 100 | 50 | 80 | |
Covered.js | 83.33 | 100 | 50 | 80 | 13 |
------------|----------|----------|----------|----------|-------------------|"
"------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
------------|---------|----------|---------|---------|-------------------
All files | 83.33 | 100 | 50 | 80 |
Covered.js | 83.33 | 100 | 50 | 80 | 13
------------|---------|----------|---------|---------|-------------------"
`;
12 changes: 6 additions & 6 deletions e2e/__tests__/__snapshots__/typescriptCoverage.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`instruments and collects coverage for typescript files 1`] = `
------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
------------|----------|----------|----------|----------|-------------------|
All files | 100 | 100 | 100 | 100 | |
covered.ts | 100 | 100 | 100 | 100 | |
------------|----------|----------|----------|----------|-------------------|
------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
------------|---------|----------|---------|---------|-------------------
All files | 100 | 100 | 100 | 100 |
covered.ts | 100 | 100 | 100 | 100 |
------------|---------|----------|---------|---------|-------------------
`;
2 changes: 1 addition & 1 deletion e2e/coverage-transform-instrumented/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"dependencies": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"babel-plugin-istanbul": "^5.1.0"
"babel-plugin-istanbul": "^6.0.0-beta.0"
}
}
Loading

0 comments on commit 88c7042

Please sign in to comment.