* Lint against CJS globals in modules * Use `import.meta.url` instead of `__filename` in `src` files * Prepare fixtures runner for `import.meta.url` * Use `import.meta.url` instead of `__filename` in `test/index` files * Remove `__dirname` from remaining test files dirname * Avoid using `module` in `src` files * Avoid using `require` in `src` files * Avoid using `require` in `test` files * Update `@types/node` * Compile dynamic import in `@babel/node` * Fix windows * Use `@babel/plugin-proposal-dynamic-import` from npm
22 lines
707 B
JavaScript
22 lines
707 B
JavaScript
import getOptionSpecificExcludesFor from "../lib/get-option-specific-excludes";
|
|
|
|
describe("defaults", () => {
|
|
describe("getOptionSpecificExcludesFor", () => {
|
|
it("should return correct excludes for `loose` mode", () => {
|
|
const defaultWebIncludesForChromeAndNode = getOptionSpecificExcludesFor({
|
|
loose: true,
|
|
});
|
|
expect(defaultWebIncludesForChromeAndNode).toEqual([
|
|
"transform-typeof-symbol",
|
|
]);
|
|
});
|
|
|
|
it("shouldn't return excludes for non-`loose` mode", () => {
|
|
const defaultWebIncludesForChromeAndNode = getOptionSpecificExcludesFor({
|
|
loose: false,
|
|
});
|
|
expect(defaultWebIncludesForChromeAndNode).toBeNull();
|
|
});
|
|
});
|
|
});
|