Skip to content

Commit

Permalink
Enable esmodule tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kherock committed Mar 26, 2022
1 parent bff83ab commit 9239692
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test/spawn/esmodule.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const { spawn, touchFile } = require('../utils');
tap.test('Supports ECMAScript modules with experimental-specifier-resolution', t => {
if (semver.satisfies(process.version, '<12.17'))
return t.skip('experimental-specifier-resolution requires node >= 12.17');
if (process.platform === 'win32') return t.skip('ESM support on windows is broken');

spawn('--experimental-specifier-resolution=node resolution.mjs', out => {
if (out.match(/touch message.js/)) {
Expand All @@ -22,8 +21,6 @@ tap.test('Supports ECMAScript modules with experimental-specifier-resolution', t
});

tap.test('Supports ECMAScript modules', t => {
if (process.platform === 'win32') return t.skip('ESM support on windows is broken');

spawn('ecma-script-modules.mjs', out => {
if (out.match(/touch message.mjs/)) {
touchFile('message.mjs');
Expand All @@ -38,8 +35,6 @@ tap.test('Supports ECMAScript modules', t => {
});

tap.test('Supports ECMAScript module packages', t => {
if (process.platform === 'win32') return t.skip('ESM support on windows is broken');

spawn('ecma-script-module-package/index.js', out => {
if (out.match(/touch ecma-script-module-package\/message.js/)) {
touchFile('ecma-script-module-package/message.js');
Expand All @@ -54,8 +49,6 @@ tap.test('Supports ECMAScript module packages', t => {
});

tap.test('We can hide the experimental warning by passing --no-warnings', t => {
if (process.platform === 'win32') return t.skip('ESM support on windows is broken');

spawn('--no-warnings ecma-script-modules.mjs', out => {
if (out.match(/ExperimentalWarning/)) return t.fail('Should not log an ExperimentalWarning');

Expand Down

0 comments on commit 9239692

Please sign in to comment.