Skip to content

Commit

Permalink
also test Node v10 esm support
Browse files Browse the repository at this point in the history
  • Loading branch information
giltayar committed May 28, 2020
1 parent 246d44d commit 30ad568
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/integration/esm.spec.js
Expand Up @@ -6,7 +6,7 @@ var args =

describe('esm', function() {
before(function() {
if (!utils.supportsEsModules(true)) this.skip();
if (!utils.supportsEsModules(false)) this.skip();
});

it('should pass a passing esm test that uses esm', function(done) {
Expand Down Expand Up @@ -39,6 +39,8 @@ describe('esm', function() {
});

it('should recognize esm files ending with .js due to package.json type flag', function(done) {
if (!utils.supportsEsModules(true)) return done();

var fixture = 'esm/js-folder/esm-in-js.fixture.js';
run(fixture, args, function(err, result) {
if (err) {
Expand Down

0 comments on commit 30ad568

Please sign in to comment.