diff --git a/packages/babel-core/test/resolution.js b/packages/babel-core/test/resolution.js index d0c8dd6903eb..09b5d1770b50 100644 --- a/packages/babel-core/test/resolution.js +++ b/packages/babel-core/test/resolution.js @@ -464,7 +464,9 @@ describe("addon resolution", function () { }).toThrow(/Cannot (?:find|resolve) module 'babel-plugin-foo'/); }); - it("should respect package.json#exports", async function () { + const nodeGte12 = parseInt(process.versions.node, 10) >= 12 ? it : it.skip; + + nodeGte12("should respect package.json#exports", async function () { process.chdir("pkg-exports"); expect(