|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP |
2 | 2 |
|
3 | | -exports[`prints correct coverage report, if a CJS module is put under test without transformation 1`] = ` |
| 3 | +exports[`on node >=12.16.0 prints correct coverage report, if a TS module is transpiled by custom transformer to ESM put under test 1`] = ` |
4 | 4 | console.log |
5 | 5 | this will print |
6 | 6 |
|
7 | | - at covered (module.js:11:11) |
| 7 | + at covered (module.ts:13:11) |
8 | 8 |
|
9 | 9 | --------------|---------|----------|---------|---------|------------------- |
10 | 10 | File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
11 | 11 | --------------|---------|----------|---------|---------|------------------- |
12 | | -All files | 59.38 | 60 | 50 | 59.38 | |
13 | | - module.js | 79.17 | 75 | 66.67 | 79.17 | 14-16,19-20 |
14 | | - uncovered.js | 0 | 0 | 0 | 0 | 1-8 |
| 12 | +All files | 50 | 25 | 25 | 50 | |
| 13 | + module.ts | 80.77 | 50 | 50 | 80.77 | 16-18,21-22 |
| 14 | + types.ts | 0 | 0 | 0 | 0 | 1-8 |
| 15 | + uncovered.ts | 0 | 0 | 0 | 0 | 1-8 |
15 | 16 | --------------|---------|----------|---------|---------|------------------- |
16 | 17 | `; |
17 | 18 |
|
18 | | -exports[`prints correct coverage report, if a TS module is transpiled by Babel to CJS and put under test 1`] = ` |
| 19 | +exports[`on node >=12.16.0 prints correct coverage report, if an ESM module is put under test without transformation 1`] = ` |
19 | 20 | console.log |
20 | 21 | this will print |
21 | 22 |
|
22 | | - at log (module.ts:13:11) |
| 23 | + at covered (module.js:11:11) |
23 | 24 |
|
24 | 25 | --------------|---------|----------|---------|---------|------------------- |
25 | 26 | File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
26 | 27 | --------------|---------|----------|---------|---------|------------------- |
27 | | -All files | 50 | 25 | 25 | 50 | |
28 | | - module.ts | 80.77 | 50 | 50 | 80.77 | 16-18,21-22 |
29 | | - types.ts | 0 | 0 | 0 | 0 | 1-8 |
30 | | - uncovered.ts | 0 | 0 | 0 | 0 | 1-8 |
| 28 | +All files | 59.38 | 50 | 33.33 | 59.38 | |
| 29 | + module.js | 79.17 | 66.67 | 50 | 79.17 | 14-16,19-20 |
| 30 | + uncovered.js | 0 | 0 | 0 | 0 | 1-8 |
31 | 31 | --------------|---------|----------|---------|---------|------------------- |
32 | 32 | `; |
33 | 33 |
|
34 | | -exports[`prints correct coverage report, if a TS module is transpiled by custom transformer to ESM put under test 1`] = ` |
| 34 | +exports[`prints correct coverage report, if a CJS module is put under test without transformation 1`] = ` |
35 | 35 | console.log |
36 | 36 | this will print |
37 | 37 |
|
38 | | - at covered (module.ts:13:11) |
| 38 | + at covered (module.js:11:11) |
39 | 39 |
|
40 | 40 | --------------|---------|----------|---------|---------|------------------- |
41 | 41 | File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
42 | 42 | --------------|---------|----------|---------|---------|------------------- |
43 | | -All files | 50 | 25 | 25 | 50 | |
44 | | - module.ts | 80.77 | 50 | 50 | 80.77 | 16-18,21-22 |
45 | | - types.ts | 0 | 0 | 0 | 0 | 1-8 |
46 | | - uncovered.ts | 0 | 0 | 0 | 0 | 1-8 |
| 43 | +All files | 59.38 | 60 | 50 | 59.38 | |
| 44 | + module.js | 79.17 | 75 | 66.67 | 79.17 | 14-16,19-20 |
| 45 | + uncovered.js | 0 | 0 | 0 | 0 | 1-8 |
47 | 46 | --------------|---------|----------|---------|---------|------------------- |
48 | 47 | `; |
49 | 48 |
|
50 | | -exports[`prints correct coverage report, if an ESM module is put under test without transformation 1`] = ` |
| 49 | +exports[`prints correct coverage report, if a TS module is transpiled by Babel to CJS and put under test 1`] = ` |
51 | 50 | console.log |
52 | 51 | this will print |
53 | 52 |
|
54 | | - at covered (module.js:11:11) |
| 53 | + at log (module.ts:13:11) |
55 | 54 |
|
56 | 55 | --------------|---------|----------|---------|---------|------------------- |
57 | 56 | File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
58 | 57 | --------------|---------|----------|---------|---------|------------------- |
59 | | -All files | 59.38 | 50 | 33.33 | 59.38 | |
60 | | - module.js | 79.17 | 66.67 | 50 | 79.17 | 14-16,19-20 |
61 | | - uncovered.js | 0 | 0 | 0 | 0 | 1-8 |
| 58 | +All files | 50 | 25 | 25 | 50 | |
| 59 | + module.ts | 80.77 | 50 | 50 | 80.77 | 16-18,21-22 |
| 60 | + types.ts | 0 | 0 | 0 | 0 | 1-8 |
| 61 | + uncovered.ts | 0 | 0 | 0 | 0 | 1-8 |
62 | 62 | --------------|---------|----------|---------|---------|------------------- |
63 | 63 | `; |
64 | 64 |
|
|
0 commit comments