mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
17 lines
365 B
JavaScript
17 lines
365 B
JavaScript
import { fileURLToPath } from "node:url";
|
|
import path from "node:path";
|
|
|
|
import getTargets from "../../lib/index.js";
|
|
|
|
it("allows custom browserslist env", () => {
|
|
const actual = getTargets(
|
|
{},
|
|
{
|
|
configPath: path.dirname(fileURLToPath(import.meta.url)),
|
|
browserslistEnv: "custom",
|
|
},
|
|
);
|
|
|
|
expect(actual).toEqual({ ie: "11.0.0" });
|
|
});
|