Skip to content

Commit

Permalink
Only test on node >= 12
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jan 6, 2022
1 parent 0232e1f commit 66229ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/babel-core/test/resolution.js
Expand Up @@ -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(
Expand Down

0 comments on commit 66229ba

Please sign in to comment.