packages/babel-helper-compilation-targets/test/custom-browserslist-env/custom-browserslist-env.spec.js
raw symbols SCIP| 1 | import { fileURLToPath } from "url"; |
| 2 | import path from "path"; |
| 3 | |
| 4 | import _getTargets from "../../lib/index.js"; |
| 5 | const getTargets = _getTargets.default || _getTargets; |
| 6 | |
| 7 | it("allows custom browserslist env", () => { |
| 8 | const actual = getTargets( |
| 9 | {}, |
| 10 | { |
| 11 | configPath: path.dirname(fileURLToPath(import.meta.url)), |
| 12 | browserslistEnv: "custom", |
| 13 | }, |
| 14 | ); |
| 15 | |
| 16 | expect(actual).toEqual({ ie: "11.0.0" }); |
| 17 | }); |