diff --git a/src/configs/testing.spec.ts b/src/configs/testing.spec.ts index 852e2a7..1d6ef49 100644 --- a/src/configs/testing.spec.ts +++ b/src/configs/testing.spec.ts @@ -1,3 +1,4 @@ +import { GLOB_E2E } from "../constants"; import { testingConfig } from "./testing"; describe("testingConfig", () => { @@ -5,11 +6,13 @@ describe("testingConfig", () => { const [vitest] = await testingConfig({}, false); expect(vitest?.name).toBe("jimmy.codes/vitest"); + expect(vitest?.ignores).toStrictEqual(GLOB_E2E); }); it("should create default config w/ jest", async () => { const [jest] = await testingConfig({ framework: "jest" }, false); expect(jest?.name).toBe("jimmy.codes/jest"); + expect(jest?.ignores).toStrictEqual(GLOB_E2E); }); }); diff --git a/src/configs/testing.ts b/src/configs/testing.ts index a45b8a2..4d25aa8 100644 --- a/src/configs/testing.ts +++ b/src/configs/testing.ts @@ -20,6 +20,7 @@ export const testingConfig = async ( configs.push({ files: GLOB_TESTS, + ignores: GLOB_E2E, ...vitestPlugin.configs.recommended, name: "jimmy.codes/vitest", rules: await vitestRules(),