diff --git a/test/integration/esm.spec.js b/test/integration/esm.spec.js index ac0386260a..018532e2a7 100644 --- a/test/integration/esm.spec.js +++ b/test/integration/esm.spec.js @@ -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) { @@ -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) {