2021-11-24 11:43:18 +01:00

16 lines
354 B
JavaScript

import getTargets from "../../lib/index.js";
import { fileURLToPath } from "url";
import path from "path";
it("allows custom browserslist env", () => {
const actual = getTargets(
{},
{
configPath: path.dirname(fileURLToPath(import.meta.url)),
browserslistEnv: "custom",
},
);
expect(actual).toEqual({ ie: "11.0.0" });
});