Skip to content

Commit 01615fd

Browse files
authored
chore: update e2e templates (#1330)
* chore(e2e): upgrade dependencies for e2e templates * chore(e2e): revert node version to node 10 * chore(e2e): revert package-lock.json for @types/node to @types/node@10 * chore(e2e): update snapshots
1 parent efb6e56 commit 01615fd

17 files changed

Lines changed: 1494 additions & 1156 deletions

File tree

e2e/__templates__/default/package-lock.json

Lines changed: 313 additions & 258 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/__templates__/default/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"version": "0.0.0-tmpl.0",
44
"private": true,
55
"devDependencies": {
6-
"@types/jest": "24.0.6",
7-
"@types/node": "10.12.5",
6+
"@types/jest": "24.0.25",
7+
"@types/node": "10.17.13",
88
"jest": "24.9.0",
9-
"typescript": "3.4.5"
9+
"typescript": "3.7.4"
1010
},
1111
"wantedDependencies": {
1212
"@types/jest": "latest",

e2e/__templates__/with-babel-7/package-lock.json

Lines changed: 353 additions & 329 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/__templates__/with-babel-7/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"version": "0.0.0-tmpl.0",
44
"private": true,
55
"devDependencies": {
6-
"@babel/core": "7.1.5",
7-
"@types/jest": "24.0.6",
8-
"@types/node": "10.12.5",
9-
"babel-jest": "24.1.0",
6+
"@babel/core": "7.7.7",
7+
"@types/jest": "24.0.25",
8+
"@types/node": "10.17.13",
9+
"babel-jest": "24.9.0",
1010
"jest": "24.9.0",
11-
"typescript": "3.1.6"
11+
"typescript": "3.7.4"
1212
},
1313
"wantedDependencies": {
1414
"@babel/core": "7",

e2e/__templates__/with-typescript-2-7/package-lock.json

Lines changed: 313 additions & 258 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/__templates__/with-typescript-2-7/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version": "0.0.0-tmpl.0",
44
"private": true,
55
"devDependencies": {
6-
"@types/jest": "24.0.6",
7-
"@types/node": "10.12.5",
6+
"@types/jest": "24.0.25",
7+
"@types/node": "10.17.13",
88
"jest": "24.9.0",
99
"typescript": "2.7.2"
1010
},

e2e/__templates__/with-unsupported-version/package-lock.json

Lines changed: 313 additions & 258 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/__templates__/with-unsupported-version/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version": "0.0.0-tmpl.0",
44
"private": true,
55
"devDependencies": {
6-
"@types/jest": "24.0.6",
7-
"@types/node": "10.12.5",
6+
"@types/jest": "24.0.25",
7+
"@types/node": "10.17.13",
88
"jest": "24.9.0",
99
"typescript": "2.5.3"
1010
},

e2e/__tests__/module-kinds/__snapshots__/amd.test.ts.snap

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@ exports[`run with options: {"module":"amd","allowSyntheticDefaultImports":false}
1212
PASS ./import-legacy.spec.ts
1313
PASS ./import-star.spec.ts
1414
ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option):
15-
import-default.spec.ts:1:8 - error TS1192: Module '"<cwd>/lib"' has no default export.
15+
import-default.spec.ts:1:8 - error TS1259: Module '"<cwd>/lib"' can only be default-imported using the 'esModuleInterop' flag
1616
1717
1 import lib from './lib'
1818
~~~
19+
20+
lib.d.ts:5:1
21+
5 export = lib
22+
~~~~~~~~~~~~
23+
This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
1924
FAIL ./import-default.spec.ts
2025
● import default
2126
@@ -123,10 +128,11 @@ exports[`run with options: {"module":"amd","esModuleInterop":true} 1`] = `
123128
PASS ./ts-jest-tools.spec.ts
124129
PASS ./import-legacy.spec.ts
125130
ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option):
126-
import-star.spec.ts:5:10 - error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'typeof lib' has no compatible call signatures.
131+
import-star.spec.ts:5:10 - error TS2349: This expression is not callable.
132+
Type 'typeof lib' has no call signatures.
127133
128134
5 expect(lib()).toBe('foo')
129-
~~~~~
135+
~~~
130136
131137
import-star.spec.ts:1:1
132138
1 import * as lib from './lib'

e2e/__tests__/module-kinds/__snapshots__/commonjs.test.ts.snap

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@ exports[`run with options: {"module":"commonjs","allowSyntheticDefaultImports":f
1010
PASS ./import-legacy.spec.ts
1111
PASS ./import-star.spec.ts
1212
ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option):
13-
import-default.spec.ts:1:8 - error TS1192: Module '"<cwd>/lib"' has no default export.
13+
import-default.spec.ts:1:8 - error TS1259: Module '"<cwd>/lib"' can only be default-imported using the 'esModuleInterop' flag
1414
1515
1 import lib from './lib'
1616
~~~
17+
18+
lib.d.ts:5:1
19+
5 export = lib
20+
~~~~~~~~~~~~
21+
This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
1722
FAIL ./import-default.spec.ts
1823
● import default
1924
@@ -85,10 +90,15 @@ exports[`run with options: {"module":"commonjs","esModuleInterop":false} 1`] = `
8590
PASS ./import-legacy.spec.ts
8691
PASS ./import-star.spec.ts
8792
ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option):
88-
import-default.spec.ts:1:8 - error TS1192: Module '"<cwd>/lib"' has no default export.
93+
import-default.spec.ts:1:8 - error TS1259: Module '"<cwd>/lib"' can only be default-imported using the 'esModuleInterop' flag
8994
9095
1 import lib from './lib'
9196
~~~
97+
98+
lib.d.ts:5:1
99+
5 export = lib
100+
~~~~~~~~~~~~
101+
This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
92102
FAIL ./import-default.spec.ts
93103
● import default
94104
@@ -124,10 +134,11 @@ exports[`run with options: {"module":"commonjs","esModuleInterop":true} 1`] = `
124134
PASS ./ts-jest-tools.spec.ts
125135
PASS ./import-legacy.spec.ts
126136
ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option):
127-
import-star.spec.ts:5:10 - error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'typeof lib' has no compatible call signatures.
137+
import-star.spec.ts:5:10 - error TS2349: This expression is not callable.
138+
Type 'typeof lib' has no call signatures.
128139
129140
5 expect(lib()).toBe('foo')
130-
~~~~~
141+
~~~
131142
132143
import-star.spec.ts:1:1
133144
1 import * as lib from './lib'
@@ -171,10 +182,15 @@ exports[`run with options: {"module":"commonjs"} 1`] = `
171182
PASS ./import-legacy.spec.ts
172183
PASS ./import-star.spec.ts
173184
ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option):
174-
import-default.spec.ts:1:8 - error TS1192: Module '"<cwd>/lib"' has no default export.
185+
import-default.spec.ts:1:8 - error TS1259: Module '"<cwd>/lib"' can only be default-imported using the 'esModuleInterop' flag
175186
176187
1 import lib from './lib'
177188
~~~
189+
190+
lib.d.ts:5:1
191+
5 export = lib
192+
~~~~~~~~~~~~
193+
This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
178194
FAIL ./import-default.spec.ts
179195
● import default
180196

0 commit comments

Comments
 (0)