Skip to content

Commit

Permalink
test(e2e): change esm nodejs condition to 14.15.0 (#3835)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnpnl authored Sep 25, 2022
1 parent eabe906 commit 5a54a63
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions e2e/__tests__/__snapshots__/native-esm-js.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`on node >=12.16.0 runs test with native ESM and isolatedModules: false 1`] = `
exports[`on node >=14.15.0 runs test with native ESM and isolatedModules: false 1`] = `
Test Suites: 1 passed, 1 total
Tests: 21 passed, 21 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching /native-esm.spec.ts/i.
`;
exports[`on node >=12.16.0 runs test with native ESM and isolatedModules: true 1`] = `
exports[`on node >=14.15.0 runs test with native ESM and isolatedModules: true 1`] = `
Test Suites: 1 passed, 1 total
Tests: 21 passed, 21 total
Snapshots: 0 total
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/extend-ts-jest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { json as runWithJson, onNodeVersions } from '../run-jest'
const DIR = 'extend-ts-jest'

// Only need to test in ESM because ESM makes `this` context become `undefined`
onNodeVersions('>=12.16.0', () => {
onNodeVersions('>=14.15.0', () => {
test(`successfully runs the tests inside ${DIR}`, () => {
const { json } = runWithJson(DIR, undefined, {
nodeOptions: '--experimental-vm-modules --no-warnings',
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/native-esm-js.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const DIR = path.resolve(__dirname, '..', 'native-esm-js', 'non-isolated')
const ISOLATED_MODULES_DIR = path.resolve(__dirname, '..', 'native-esm-js', 'isolated')

// The versions where vm.Module exists and commonjs with "exports" is not broken
onNodeVersions('>=12.16.0', () => {
onNodeVersions('>=14.15.0', () => {
test('runs test with native ESM and isolatedModules: false', () => {
const { exitCode, stderr, stdout } = runJest(DIR, ['native-esm.spec.ts'], {
nodeOptions: '--experimental-vm-modules --no-warnings',
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/native-esm-ts.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { onNodeVersions, json as runWithJson } from '../run-jest'

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

0 comments on commit 5a54a63

Please sign in to comment.