From 30ad568a0ff80a83f0d5dc055be8deed01adef0d Mon Sep 17 00:00:00 2001 From: Gil Tayar Date: Thu, 28 May 2020 11:27:05 +0300 Subject: [PATCH] also test Node v10 esm support --- test/integration/esm.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {