Skip to content

Commit 5a54a63

Browse files
authored
test(e2e): change esm nodejs condition to 14.15.0 (#3835)
1 parent eabe906 commit 5a54a63

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

e2e/__tests__/__snapshots__/native-esm-js.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`on node >=12.16.0 runs test with native ESM and isolatedModules: false 1`] = `
3+
exports[`on node >=14.15.0 runs test with native ESM and isolatedModules: false 1`] = `
44
Test Suites: 1 passed, 1 total
55
Tests: 21 passed, 21 total
66
Snapshots: 0 total
77
Time: <<REPLACED>>
88
Ran all test suites matching /native-esm.spec.ts/i.
99
`;
1010
11-
exports[`on node >=12.16.0 runs test with native ESM and isolatedModules: true 1`] = `
11+
exports[`on node >=14.15.0 runs test with native ESM and isolatedModules: true 1`] = `
1212
Test Suites: 1 passed, 1 total
1313
Tests: 21 passed, 21 total
1414
Snapshots: 0 total

e2e/__tests__/extend-ts-jest.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { json as runWithJson, onNodeVersions } from '../run-jest'
33
const DIR = 'extend-ts-jest'
44

55
// Only need to test in ESM because ESM makes `this` context become `undefined`
6-
onNodeVersions('>=12.16.0', () => {
6+
onNodeVersions('>=14.15.0', () => {
77
test(`successfully runs the tests inside ${DIR}`, () => {
88
const { json } = runWithJson(DIR, undefined, {
99
nodeOptions: '--experimental-vm-modules --no-warnings',

e2e/__tests__/native-esm-js.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const DIR = path.resolve(__dirname, '..', 'native-esm-js', 'non-isolated')
99
const ISOLATED_MODULES_DIR = path.resolve(__dirname, '..', 'native-esm-js', 'isolated')
1010

1111
// The versions where vm.Module exists and commonjs with "exports" is not broken
12-
onNodeVersions('>=12.16.0', () => {
12+
onNodeVersions('>=14.15.0', () => {
1313
test('runs test with native ESM and isolatedModules: false', () => {
1414
const { exitCode, stderr, stdout } = runJest(DIR, ['native-esm.spec.ts'], {
1515
nodeOptions: '--experimental-vm-modules --no-warnings',

e2e/__tests__/native-esm-ts.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { onNodeVersions, json as runWithJson } from '../run-jest'
22

33
// The versions where vm.Module exists and commonjs with "exports" is not broken
4-
onNodeVersions('>=12.16.0', () => {
4+
onNodeVersions('>=14.15.0', () => {
55
test('runs TS test with native ESM', () => {
66
const { exitCode, json } = runWithJson('native-esm-ts', [], {
77
nodeOptions: '--experimental-vm-modules --no-warnings',

0 commit comments

Comments
 (0)