Skip to content

Commit

Permalink
disable test in Windows Node <v12.11 due to bug in Windows ESM impl
Browse files Browse the repository at this point in the history
  • Loading branch information
giltayar committed Oct 1, 2019
1 parent 9f38e09 commit 44fa39c
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions test/integration/esm.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
});
});

0 comments on commit 44fa39c

Please sign in to comment.