Skip to content

Commit

Permalink
set temporary resolution in preset-env tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jun 27, 2023
1 parent 134728d commit eae3bec
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion packages/babel-preset-env/test/fixtures.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
import runner from "@babel/helper-plugin-test-runner";
import { execSync } from "child_process";

runner(import.meta.url);
describe("preset-env", () => {
// todo: remove temporary resolution when @babel/helper-define-polyfill-provider bumps
// @babel/helper-compilation-targets to the latest version
beforeAll(() => {
execSync(
"yarn set resolution '@babel/helper-compilation-targets@npm:^7.17.7' 'workspace:*'",
);
});
afterAll(() => {
execSync(
"yarn set resolution '@babel/helper-compilation-targets@npm:^7.17.7' '7.22.5'",
);
});
runner(import.meta.url);
});

0 comments on commit eae3bec

Please sign in to comment.