Skip to content

Commit 790a026

Browse files
committed
Only skip a specifc esm test; not all of them.
1 parent 130bb18 commit 790a026

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

e2e/__tests__/__snapshots__/nativeEsm.test.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`on node >=12.16.0 runs test with native ESM 1`] = `
44
Test Suites: 1 passed, 1 total
5-
Tests: 21 passed, 21 total
5+
Tests: 1 skipped, 20 passed, 21 total
66
Snapshots: 0 total
77
Time: <<REPLACED>>
88
Ran all test suites matching /native-esm.test.js/i.

e2e/__tests__/nativeEsm.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ test('test config is without transform', () => {
2222

2323
// The versions where vm.Module exists and commonjs with "exports" is not broken
2424
onNodeVersions('>=12.16.0', () => {
25-
test.skip('runs test with native ESM', () => {
25+
test('runs test with native ESM', () => {
2626
const {exitCode, stderr, stdout} = runJest(DIR, ['native-esm.test.js'], {
2727
nodeOptions: '--experimental-vm-modules --no-warnings',
2828
});

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ test('import cjs', async () => {
7272
expect(half(4)).toBe(2);
7373
});
7474

75-
test('import esm from cjs', async () => {
75+
test.skip('import esm from cjs', async () => {
7676
const {default: halfPromise} = await import('../fromEsm.cjs');
7777
expect(await halfPromise(1)).toBe(2);
7878
});

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"jest-jasmine": "JEST_JASMINE=1 yarn jest",
9999
"jest-jasmine-ci": "yarn jest-jasmine --color --config jest.config.ci.js",
100100
"jest-coverage": "yarn jest --coverage",
101-
"lint": "eslint . --fix --cache --ext js,jsx,ts,tsx,md",
101+
"lint": "eslint . --cache --ext js,jsx,ts,tsx,md",
102102
"lint:prettier": "prettier '**/*.{md,yml,yaml}' 'website/**/*.{css,js}' --write --ignore-path .gitignore",
103103
"lint:prettier:ci": "prettier '**/*.{md,yml,yaml}' 'website/**/*.{css,js}' --check --ignore-path .gitignore",
104104
"remove-examples": "node ./scripts/remove-examples.js",

0 commit comments

Comments
 (0)