Skip to content

Commit

Permalink
fix: remove unused snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
kulshekhar committed Feb 16, 2019
1 parent 16fd6b5 commit 108b08b
Show file tree
Hide file tree
Showing 10 changed files with 218 additions and 816 deletions.
17 changes: 2 additions & 15 deletions e2e/__helpers__/templates.ts
@@ -1,22 +1,9 @@
export enum PackageSets {
default = 'default',
babel6 = 'with-babel-6',
babel7 = 'with-babel-7',
jest22 = 'with-jest-22',
typescript2_7 = 'with-typescript-2-7',
// invalid
unsupportedVersion = 'with-unsupported-version',
}
export const allValidPackageSets = [
PackageSets.default,
PackageSets.babel6,
PackageSets.babel7,
PackageSets.jest22,
PackageSets.typescript2_7,
]
export const allPackageSetsWithPreset = [
PackageSets.default,
PackageSets.babel6,
PackageSets.babel7,
PackageSets.typescript2_7,
]
export const allValidPackageSets = [PackageSets.default, PackageSets.babel7, PackageSets.typescript2_7]
export const allPackageSetsWithPreset = [PackageSets.default, PackageSets.babel7, PackageSets.typescript2_7]
51 changes: 0 additions & 51 deletions e2e/__tests__/__snapshots__/allow-js.test.ts.snap
Expand Up @@ -17,23 +17,6 @@ exports[`using babel-jest for js files should pass using template "default" 1`]
================================================================================
`;

exports[`using babel-jest for js files should pass using template "with-babel-6" 1`] = `
√ jest
↳ exit code: 0
===[ STDOUT ]===================================================================
===[ STDERR ]===================================================================
PASS ./bar.spec.ts
PASS ./foo.spec.js
Test Suites: 2 passed, 2 total
Tests: 4 passed, 4 total
Snapshots: 0 total
Time: XXs
Ran all test suites.
================================================================================
`;

exports[`using babel-jest for js files should pass using template "with-babel-7" 1`] = `
√ jest
↳ exit code: 0
Expand All @@ -51,23 +34,6 @@ exports[`using babel-jest for js files should pass using template "with-babel-7"
================================================================================
`;

exports[`using babel-jest for js files should pass using template "with-jest-22" 1`] = `
√ jest
↳ exit code: 0
===[ STDOUT ]===================================================================
===[ STDERR ]===================================================================
PASS ./bar.spec.ts
PASS ./foo.spec.js
Test Suites: 2 passed, 2 total
Tests: 4 passed, 4 total
Snapshots: 0 total
Time: XXs
Ran all test suites.
================================================================================
`;

exports[`using babel-jest for js files should pass using template "with-typescript-2-7" 1`] = `
√ jest
↳ exit code: 0
Expand Down Expand Up @@ -102,23 +68,6 @@ exports[`using ts-jest for js files should pass using template "default" 1`] = `
================================================================================
`;

exports[`using ts-jest for js files should pass using template "with-babel-6" 1`] = `
√ jest
↳ exit code: 0
===[ STDOUT ]===================================================================
===[ STDERR ]===================================================================
PASS ./esm.spec.js
√ esm
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: XXs
Ran all test suites.
================================================================================
`;

exports[`using ts-jest for js files should pass using template "with-babel-7" 1`] = `
√ jest
↳ exit code: 0
Expand Down
46 changes: 0 additions & 46 deletions e2e/__tests__/__snapshots__/coverage.test.ts.snap
Expand Up @@ -23,29 +23,6 @@ exports[`using template "default" should report coverages 1`] = `
================================================================================
`;

exports[`using template "with-babel-6" should report coverages 1`] = `
√ jest
↳ exit code: 0
===[ STDOUT ]===================================================================
----------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
----------|----------|----------|----------|----------|-------------------|
All files | 83.33 | 100 | 66.67 | 80 | |
Hello.ts | 83.33 | 100 | 66.67 | 80 | 5 |
----------|----------|----------|----------|----------|-------------------|
===[ STDERR ]===================================================================
PASS ./Hello.spec.ts
Hello Class
√ should create a new Hello
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: XXs
Ran all test suites.
================================================================================
`;

exports[`using template "with-babel-7" should report coverages 1`] = `
√ jest
↳ exit code: 0
Expand All @@ -69,29 +46,6 @@ exports[`using template "with-babel-7" should report coverages 1`] = `
================================================================================
`;

exports[`using template "with-jest-22" should report coverages 1`] = `
√ jest
↳ exit code: 0
===[ STDOUT ]===================================================================
----------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
----------|----------|----------|----------|----------|-------------------|
All files | 83.33 | 100 | 66.67 | 80 | |
Hello.ts | 83.33 | 100 | 66.67 | 80 | 5 |
----------|----------|----------|----------|----------|-------------------|
===[ STDERR ]===================================================================
PASS ./Hello.spec.ts
Hello Class
√ should create a new Hello
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: XXs
Ran all test suites.
================================================================================
`;

exports[`using template "with-typescript-2-7" should report coverages 1`] = `
√ jest
↳ exit code: 0
Expand Down
108 changes: 0 additions & 108 deletions e2e/__tests__/__snapshots__/deep-path.test.ts.snap
Expand Up @@ -49,60 +49,6 @@ exports[`Deep paths test should pass using template "default": output 1`] = `
================================================================================
`;
exports[`Deep paths test should pass using template "with-babel-6": lcov 1`] = `
"TN:
SF:<cwd>/src/Button/click.ts
FN:3,click
FNF:1
FNH:1
FNDA:1,click
DA:1,1
DA:3,1
DA:4,1
LF:3
LH:3
BRF:0
BRH:0
end_of_record
TN:
SF:<cwd>/src/Tests/Button/click.test.ts
FN:3,(anonymous_0)
FNF:1
FNH:1
FNDA:1,(anonymous_0)
DA:1,1
DA:3,1
DA:4,1
LF:3
LH:3
BRF:0
BRH:0
end_of_record
"
`;
exports[`Deep paths test should pass using template "with-babel-6": output 1`] = `
√ npm -s run test
↳ exit code: 0
===[ STDOUT ]===================================================================
=============================== Coverage summary ===============================
Statements : 100% ( 6/6 )
Branches : 100% ( 0/0 )
Functions : 100% ( 2/2 )
Lines : 100% ( 6/6 )
================================================================================
===[ STDERR ]===================================================================
PASS Button/click.test.ts
√ button should click!
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: XXs
Ran all test suites.
================================================================================
`;
exports[`Deep paths test should pass using template "with-babel-7": lcov 1`] = `
"TN:
SF:<cwd>/src/Button/click.ts
Expand Down Expand Up @@ -152,60 +98,6 @@ exports[`Deep paths test should pass using template "with-babel-7": output 1`] =
================================================================================
`;
exports[`Deep paths test should pass using template "with-jest-22": lcov 1`] = `
"TN:
SF:<cwd>/src/Button/click.ts
FN:3,click
FNF:1
FNH:1
FNDA:1,click
DA:1,1
DA:3,1
DA:4,1
LF:3
LH:3
BRF:0
BRH:0
end_of_record
TN:
SF:<cwd>/src/Tests/Button/click.test.ts
FN:3,(anonymous_0)
FNF:1
FNH:1
FNDA:1,(anonymous_0)
DA:1,1
DA:3,1
DA:4,1
LF:3
LH:3
BRF:0
BRH:0
end_of_record
"
`;
exports[`Deep paths test should pass using template "with-jest-22": output 1`] = `
√ npm -s run test
↳ exit code: 0
===[ STDOUT ]===================================================================
=============================== Coverage summary ===============================
Statements : 100% ( 6/6 )
Branches : 100% ( 0/0 )
Functions : 100% ( 2/2 )
Lines : 100% ( 6/6 )
================================================================================
===[ STDERR ]===================================================================
PASS Button/click.test.ts
√ button should click!
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: XXs
Ran all test suites.
================================================================================
`;
exports[`Deep paths test should pass using template "with-typescript-2-7": lcov 1`] = `
"TN:
SF:<cwd>/src/Button/click.ts
Expand Down
90 changes: 0 additions & 90 deletions e2e/__tests__/__snapshots__/diagnostics.test.ts.snap
Expand Up @@ -23,29 +23,6 @@ exports[`With diagnostics, first throws should fail using template "default" 1`]
================================================================================
`;

exports[`With diagnostics, first throws should fail using template "with-babel-6" 1`] = `
× jest
↳ exit code: 1
===[ STDOUT ]===================================================================
===[ STDERR ]===================================================================
FAIL ./main.spec.ts
● Test suite failed to run
TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option):
main.ts:2:3 - error TS2322: Type 'string' is not assignable to type 'number'.
2 return input
~~~~~~~~~~~~
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: XXs
Ran all test suites.
================================================================================
`;

exports[`With diagnostics, first throws should fail using template "with-babel-7" 1`] = `
× jest
↳ exit code: 1
Expand All @@ -69,29 +46,6 @@ exports[`With diagnostics, first throws should fail using template "with-babel-7
================================================================================
`;

exports[`With diagnostics, first throws should fail using template "with-jest-22" 1`] = `
× jest
↳ exit code: 1
===[ STDOUT ]===================================================================
===[ STDERR ]===================================================================
FAIL ./main.spec.ts
● Test suite failed to run
TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option):
main.ts:2:3 - error TS2322: Type 'string' is not assignable to type 'number'.
2 return input
~~~~~~~~~~~~
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: XXs
Ran all test suites.
================================================================================
`;

exports[`With diagnostics, first throws should fail using template "with-typescript-2-7" 1`] = `
× jest
↳ exit code: 1
Expand Down Expand Up @@ -137,28 +91,6 @@ exports[`With diagnostics, warn only should pass using template "default" 1`] =
================================================================================
`;

exports[`With diagnostics, warn only should pass using template "with-babel-6" 1`] = `
√ jest --no-cache
↳ exit code: 0
===[ STDOUT ]===================================================================
===[ STDERR ]===================================================================
ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option):
main.ts:2:3 - error TS2322: Type 'string' is not assignable to type 'number'.
2 return input
~~~~~~~~~~~~
PASS ./main.spec.ts
√ should pass
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: XXs
Ran all test suites.
================================================================================
`;

exports[`With diagnostics, warn only should pass using template "with-babel-7" 1`] = `
√ jest --no-cache
↳ exit code: 0
Expand All @@ -181,28 +113,6 @@ exports[`With diagnostics, warn only should pass using template "with-babel-7" 1
================================================================================
`;

exports[`With diagnostics, warn only should pass using template "with-jest-22" 1`] = `
√ jest --no-cache
↳ exit code: 0
===[ STDOUT ]===================================================================
===[ STDERR ]===================================================================
ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option):
main.ts:2:3 - error TS2322: Type 'string' is not assignable to type 'number'.
2 return input
~~~~~~~~~~~~
PASS ./main.spec.ts
√ should pass
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: XXs
Ran all test suites.
================================================================================
`;

exports[`With diagnostics, warn only should pass using template "with-typescript-2-7" 1`] = `
√ jest --no-cache
↳ exit code: 0
Expand Down

0 comments on commit 108b08b

Please sign in to comment.