Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Nov 2, 2021
1 parent 7692378 commit d3a18bd
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -17,6 +17,11 @@ describe("parserOverride", () => {
],
};

const babel7node12 =
process.env.BABEL_8_BREAKING || parseInt(process.versions.node) < 12
? it.skip
: it;

it("works when parsing in the main thread", () => {
const { ast } = babelESLint.parseForESLint(`27`, {
filename: "input.js",
Expand All @@ -31,7 +36,7 @@ describe("parserOverride", () => {
expect(ast).toMatchObject(expectedAST);
});

it("works when parsing in a worker", () => {
babel7node12("works when parsing in a worker", async () => {
const { ast } = babelESLintWorker.parseForESLint(`27`, {
filename: "input.js",
babelOptions: {
Expand Down

0 comments on commit d3a18bd

Please sign in to comment.