From ef1d66d0f3f88d78e7fe2a0a602105167d551da7 Mon Sep 17 00:00:00 2001 From: Jimmy Guzman <30631540+jimmy-guzman@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:55:50 -0600 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20bring=20back=20missing=20?= =?UTF-8?q?e2e=20ignoring=20to=20vitest=20config=20(#116)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/configs/testing.spec.ts | 3 +++ src/configs/testing.ts | 1 + 2 files changed, 4 insertions(+) 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(),