diff --git a/test/integration/esm.spec.js b/test/integration/esm.spec.js index 415e3eef18..95947e78a7 100644 --- a/test/integration/esm.spec.js +++ b/test/integration/esm.spec.js @@ -36,19 +36,26 @@ describe('esm', function() { ); }); - it('should recognize esm files ending with .js due to package.json type flag', function(done) { - run( - 'esm/js-folder/esm-in-js.fixture.js', - ['--experimental-modules', '--no-warnings'], - function(err, result) { - if (err) { - done(err); - return; - } - expect(result, 'to have passed test count', 1); - done(); - }, - 'pipe' - ); - }); + if ( + !( + process.platform === 'win32' && + +process.versions.node.split('.')[0] === 12 && + +process.versions.node.split('.')[1] >= 11 + ) + ) + it('should recognize esm files ending with .js due to package.json type flag', function(done) { + run( + 'esm/js-folder/esm-in-js.fixture.js', + ['--experimental-modules', '--no-warnings'], + function(err, result) { + if (err) { + done(err); + return; + } + expect(result, 'to have passed test count', 1); + done(); + }, + 'pipe' + ); + }); });