Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(e2e): change esm nodejs condition to 14.15.0 #3835

Merged
merged 1 commit into from Sep 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions e2e/__tests__/__snapshots__/native-esm-js.test.ts.snap
@@ -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
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
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
@@ -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