Skip to content

Commit 108b08b

Browse files
committed
fix: remove unused snapshots
1 parent 16fd6b5 commit 108b08b

10 files changed

Lines changed: 218 additions & 816 deletions

e2e/__helpers__/templates.ts

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
11
export enum PackageSets {
22
default = 'default',
3-
babel6 = 'with-babel-6',
43
babel7 = 'with-babel-7',
5-
jest22 = 'with-jest-22',
64
typescript2_7 = 'with-typescript-2-7',
75
// invalid
86
unsupportedVersion = 'with-unsupported-version',
97
}
10-
export const allValidPackageSets = [
11-
PackageSets.default,
12-
PackageSets.babel6,
13-
PackageSets.babel7,
14-
PackageSets.jest22,
15-
PackageSets.typescript2_7,
16-
]
17-
export const allPackageSetsWithPreset = [
18-
PackageSets.default,
19-
PackageSets.babel6,
20-
PackageSets.babel7,
21-
PackageSets.typescript2_7,
22-
]
8+
export const allValidPackageSets = [PackageSets.default, PackageSets.babel7, PackageSets.typescript2_7]
9+
export const allPackageSetsWithPreset = [PackageSets.default, PackageSets.babel7, PackageSets.typescript2_7]

e2e/__tests__/__snapshots__/allow-js.test.ts.snap

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,6 @@ exports[`using babel-jest for js files should pass using template "default" 1`]
1717
================================================================================
1818
`;
1919

20-
exports[`using babel-jest for js files should pass using template "with-babel-6" 1`] = `
21-
√ jest
22-
↳ exit code: 0
23-
===[ STDOUT ]===================================================================
24-
25-
===[ STDERR ]===================================================================
26-
PASS ./bar.spec.ts
27-
PASS ./foo.spec.js
28-
29-
Test Suites: 2 passed, 2 total
30-
Tests: 4 passed, 4 total
31-
Snapshots: 0 total
32-
Time: XXs
33-
Ran all test suites.
34-
================================================================================
35-
`;
36-
3720
exports[`using babel-jest for js files should pass using template "with-babel-7" 1`] = `
3821
√ jest
3922
↳ exit code: 0
@@ -51,23 +34,6 @@ exports[`using babel-jest for js files should pass using template "with-babel-7"
5134
================================================================================
5235
`;
5336

54-
exports[`using babel-jest for js files should pass using template "with-jest-22" 1`] = `
55-
√ jest
56-
↳ exit code: 0
57-
===[ STDOUT ]===================================================================
58-
59-
===[ STDERR ]===================================================================
60-
PASS ./bar.spec.ts
61-
PASS ./foo.spec.js
62-
63-
Test Suites: 2 passed, 2 total
64-
Tests: 4 passed, 4 total
65-
Snapshots: 0 total
66-
Time: XXs
67-
Ran all test suites.
68-
================================================================================
69-
`;
70-
7137
exports[`using babel-jest for js files should pass using template "with-typescript-2-7" 1`] = `
7238
√ jest
7339
↳ exit code: 0
@@ -102,23 +68,6 @@ exports[`using ts-jest for js files should pass using template "default" 1`] = `
10268
================================================================================
10369
`;
10470

105-
exports[`using ts-jest for js files should pass using template "with-babel-6" 1`] = `
106-
√ jest
107-
↳ exit code: 0
108-
===[ STDOUT ]===================================================================
109-
110-
===[ STDERR ]===================================================================
111-
PASS ./esm.spec.js
112-
√ esm
113-
114-
Test Suites: 1 passed, 1 total
115-
Tests: 1 passed, 1 total
116-
Snapshots: 0 total
117-
Time: XXs
118-
Ran all test suites.
119-
================================================================================
120-
`;
121-
12271
exports[`using ts-jest for js files should pass using template "with-babel-7" 1`] = `
12372
√ jest
12473
↳ exit code: 0

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

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,6 @@ exports[`using template "default" should report coverages 1`] = `
2323
================================================================================
2424
`;
2525

26-
exports[`using template "with-babel-6" should report coverages 1`] = `
27-
√ jest
28-
↳ exit code: 0
29-
===[ STDOUT ]===================================================================
30-
----------|----------|----------|----------|----------|-------------------|
31-
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
32-
----------|----------|----------|----------|----------|-------------------|
33-
All files | 83.33 | 100 | 66.67 | 80 | |
34-
Hello.ts | 83.33 | 100 | 66.67 | 80 | 5 |
35-
----------|----------|----------|----------|----------|-------------------|
36-
===[ STDERR ]===================================================================
37-
PASS ./Hello.spec.ts
38-
Hello Class
39-
√ should create a new Hello
40-
41-
Test Suites: 1 passed, 1 total
42-
Tests: 1 passed, 1 total
43-
Snapshots: 0 total
44-
Time: XXs
45-
Ran all test suites.
46-
================================================================================
47-
`;
48-
4926
exports[`using template "with-babel-7" should report coverages 1`] = `
5027
√ jest
5128
↳ exit code: 0
@@ -69,29 +46,6 @@ exports[`using template "with-babel-7" should report coverages 1`] = `
6946
================================================================================
7047
`;
7148

72-
exports[`using template "with-jest-22" should report coverages 1`] = `
73-
√ jest
74-
↳ exit code: 0
75-
===[ STDOUT ]===================================================================
76-
----------|----------|----------|----------|----------|-------------------|
77-
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
78-
----------|----------|----------|----------|----------|-------------------|
79-
All files | 83.33 | 100 | 66.67 | 80 | |
80-
Hello.ts | 83.33 | 100 | 66.67 | 80 | 5 |
81-
----------|----------|----------|----------|----------|-------------------|
82-
===[ STDERR ]===================================================================
83-
PASS ./Hello.spec.ts
84-
Hello Class
85-
√ should create a new Hello
86-
87-
Test Suites: 1 passed, 1 total
88-
Tests: 1 passed, 1 total
89-
Snapshots: 0 total
90-
Time: XXs
91-
Ran all test suites.
92-
================================================================================
93-
`;
94-
9549
exports[`using template "with-typescript-2-7" should report coverages 1`] = `
9650
√ jest
9751
↳ exit code: 0

e2e/__tests__/__snapshots__/deep-path.test.ts.snap

Lines changed: 0 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -49,60 +49,6 @@ exports[`Deep paths test should pass using template "default": output 1`] = `
4949
================================================================================
5050
`;
5151
52-
exports[`Deep paths test should pass using template "with-babel-6": lcov 1`] = `
53-
"TN:
54-
SF:<cwd>/src/Button/click.ts
55-
FN:3,click
56-
FNF:1
57-
FNH:1
58-
FNDA:1,click
59-
DA:1,1
60-
DA:3,1
61-
DA:4,1
62-
LF:3
63-
LH:3
64-
BRF:0
65-
BRH:0
66-
end_of_record
67-
TN:
68-
SF:<cwd>/src/Tests/Button/click.test.ts
69-
FN:3,(anonymous_0)
70-
FNF:1
71-
FNH:1
72-
FNDA:1,(anonymous_0)
73-
DA:1,1
74-
DA:3,1
75-
DA:4,1
76-
LF:3
77-
LH:3
78-
BRF:0
79-
BRH:0
80-
end_of_record
81-
"
82-
`;
83-
84-
exports[`Deep paths test should pass using template "with-babel-6": output 1`] = `
85-
√ npm -s run test
86-
↳ exit code: 0
87-
===[ STDOUT ]===================================================================
88-
=============================== Coverage summary ===============================
89-
Statements : 100% ( 6/6 )
90-
Branches : 100% ( 0/0 )
91-
Functions : 100% ( 2/2 )
92-
Lines : 100% ( 6/6 )
93-
================================================================================
94-
===[ STDERR ]===================================================================
95-
PASS Button/click.test.ts
96-
√ button should click!
97-
98-
Test Suites: 1 passed, 1 total
99-
Tests: 1 passed, 1 total
100-
Snapshots: 0 total
101-
Time: XXs
102-
Ran all test suites.
103-
================================================================================
104-
`;
105-
10652
exports[`Deep paths test should pass using template "with-babel-7": lcov 1`] = `
10753
"TN:
10854
SF:<cwd>/src/Button/click.ts
@@ -152,60 +98,6 @@ exports[`Deep paths test should pass using template "with-babel-7": output 1`] =
15298
================================================================================
15399
`;
154100
155-
exports[`Deep paths test should pass using template "with-jest-22": lcov 1`] = `
156-
"TN:
157-
SF:<cwd>/src/Button/click.ts
158-
FN:3,click
159-
FNF:1
160-
FNH:1
161-
FNDA:1,click
162-
DA:1,1
163-
DA:3,1
164-
DA:4,1
165-
LF:3
166-
LH:3
167-
BRF:0
168-
BRH:0
169-
end_of_record
170-
TN:
171-
SF:<cwd>/src/Tests/Button/click.test.ts
172-
FN:3,(anonymous_0)
173-
FNF:1
174-
FNH:1
175-
FNDA:1,(anonymous_0)
176-
DA:1,1
177-
DA:3,1
178-
DA:4,1
179-
LF:3
180-
LH:3
181-
BRF:0
182-
BRH:0
183-
end_of_record
184-
"
185-
`;
186-
187-
exports[`Deep paths test should pass using template "with-jest-22": output 1`] = `
188-
√ npm -s run test
189-
↳ exit code: 0
190-
===[ STDOUT ]===================================================================
191-
=============================== Coverage summary ===============================
192-
Statements : 100% ( 6/6 )
193-
Branches : 100% ( 0/0 )
194-
Functions : 100% ( 2/2 )
195-
Lines : 100% ( 6/6 )
196-
================================================================================
197-
===[ STDERR ]===================================================================
198-
PASS Button/click.test.ts
199-
√ button should click!
200-
201-
Test Suites: 1 passed, 1 total
202-
Tests: 1 passed, 1 total
203-
Snapshots: 0 total
204-
Time: XXs
205-
Ran all test suites.
206-
================================================================================
207-
`;
208-
209101
exports[`Deep paths test should pass using template "with-typescript-2-7": lcov 1`] = `
210102
"TN:
211103
SF:<cwd>/src/Button/click.ts

e2e/__tests__/__snapshots__/diagnostics.test.ts.snap

Lines changed: 0 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,6 @@ exports[`With diagnostics, first throws should fail using template "default" 1`]
2323
================================================================================
2424
`;
2525

26-
exports[`With diagnostics, first throws should fail using template "with-babel-6" 1`] = `
27-
× jest
28-
↳ exit code: 1
29-
===[ STDOUT ]===================================================================
30-
31-
===[ STDERR ]===================================================================
32-
FAIL ./main.spec.ts
33-
● Test suite failed to run
34-
35-
TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option):
36-
main.ts:2:3 - error TS2322: Type 'string' is not assignable to type 'number'.
37-
38-
2 return input
39-
~~~~~~~~~~~~
40-
41-
Test Suites: 1 failed, 1 total
42-
Tests: 0 total
43-
Snapshots: 0 total
44-
Time: XXs
45-
Ran all test suites.
46-
================================================================================
47-
`;
48-
4926
exports[`With diagnostics, first throws should fail using template "with-babel-7" 1`] = `
5027
× jest
5128
↳ exit code: 1
@@ -69,29 +46,6 @@ exports[`With diagnostics, first throws should fail using template "with-babel-7
6946
================================================================================
7047
`;
7148

72-
exports[`With diagnostics, first throws should fail using template "with-jest-22" 1`] = `
73-
× jest
74-
↳ exit code: 1
75-
===[ STDOUT ]===================================================================
76-
77-
===[ STDERR ]===================================================================
78-
FAIL ./main.spec.ts
79-
● Test suite failed to run
80-
81-
TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option):
82-
main.ts:2:3 - error TS2322: Type 'string' is not assignable to type 'number'.
83-
84-
2 return input
85-
~~~~~~~~~~~~
86-
87-
Test Suites: 1 failed, 1 total
88-
Tests: 0 total
89-
Snapshots: 0 total
90-
Time: XXs
91-
Ran all test suites.
92-
================================================================================
93-
`;
94-
9549
exports[`With diagnostics, first throws should fail using template "with-typescript-2-7" 1`] = `
9650
× jest
9751
↳ exit code: 1
@@ -137,28 +91,6 @@ exports[`With diagnostics, warn only should pass using template "default" 1`] =
13791
================================================================================
13892
`;
13993

140-
exports[`With diagnostics, warn only should pass using template "with-babel-6" 1`] = `
141-
√ jest --no-cache
142-
↳ exit code: 0
143-
===[ STDOUT ]===================================================================
144-
145-
===[ STDERR ]===================================================================
146-
ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option):
147-
main.ts:2:3 - error TS2322: Type 'string' is not assignable to type 'number'.
148-
149-
2 return input
150-
~~~~~~~~~~~~
151-
PASS ./main.spec.ts
152-
√ should pass
153-
154-
Test Suites: 1 passed, 1 total
155-
Tests: 1 passed, 1 total
156-
Snapshots: 0 total
157-
Time: XXs
158-
Ran all test suites.
159-
================================================================================
160-
`;
161-
16294
exports[`With diagnostics, warn only should pass using template "with-babel-7" 1`] = `
16395
√ jest --no-cache
16496
↳ exit code: 0
@@ -181,28 +113,6 @@ exports[`With diagnostics, warn only should pass using template "with-babel-7" 1
181113
================================================================================
182114
`;
183115

184-
exports[`With diagnostics, warn only should pass using template "with-jest-22" 1`] = `
185-
√ jest --no-cache
186-
↳ exit code: 0
187-
===[ STDOUT ]===================================================================
188-
189-
===[ STDERR ]===================================================================
190-
ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option):
191-
main.ts:2:3 - error TS2322: Type 'string' is not assignable to type 'number'.
192-
193-
2 return input
194-
~~~~~~~~~~~~
195-
PASS ./main.spec.ts
196-
√ should pass
197-
198-
Test Suites: 1 passed, 1 total
199-
Tests: 1 passed, 1 total
200-
Snapshots: 0 total
201-
Time: XXs
202-
Ran all test suites.
203-
================================================================================
204-
`;
205-
206116
exports[`With diagnostics, warn only should pass using template "with-typescript-2-7" 1`] = `
207117
√ jest --no-cache
208118
↳ exit code: 0

0 commit comments

Comments
 (0)