Skip to content

Commit

Permalink
Only skip a specifc esm test; not all of them.
Browse files Browse the repository at this point in the history
  • Loading branch information
rthreei committed Jan 5, 2022
1 parent 130bb18 commit 790a026
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e2e/__tests__/__snapshots__/nativeEsm.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`on node >=12.16.0 runs test with native ESM 1`] = `
Test Suites: 1 passed, 1 total
Tests: 21 passed, 21 total
Tests: 1 skipped, 20 passed, 21 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching /native-esm.test.js/i.
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/nativeEsm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test('test config is without transform', () => {

// The versions where vm.Module exists and commonjs with "exports" is not broken
onNodeVersions('>=12.16.0', () => {
test.skip('runs test with native ESM', () => {
test('runs test with native ESM', () => {
const {exitCode, stderr, stdout} = runJest(DIR, ['native-esm.test.js'], {
nodeOptions: '--experimental-vm-modules --no-warnings',
});
Expand Down
2 changes: 1 addition & 1 deletion e2e/native-esm/__tests__/native-esm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ test('import cjs', async () => {
expect(half(4)).toBe(2);
});

test('import esm from cjs', async () => {
test.skip('import esm from cjs', async () => {
const {default: halfPromise} = await import('../fromEsm.cjs');
expect(await halfPromise(1)).toBe(2);
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"jest-jasmine": "JEST_JASMINE=1 yarn jest",
"jest-jasmine-ci": "yarn jest-jasmine --color --config jest.config.ci.js",
"jest-coverage": "yarn jest --coverage",
"lint": "eslint . --fix --cache --ext js,jsx,ts,tsx,md",
"lint": "eslint . --cache --ext js,jsx,ts,tsx,md",
"lint:prettier": "prettier '**/*.{md,yml,yaml}' 'website/**/*.{css,js}' --write --ignore-path .gitignore",
"lint:prettier:ci": "prettier '**/*.{md,yml,yaml}' 'website/**/*.{css,js}' --check --ignore-path .gitignore",
"remove-examples": "node ./scripts/remove-examples.js",
Expand Down

0 comments on commit 790a026

Please sign in to comment.