diff --git a/vitest.config.ts b/vitest.config.ts index 88094b5..db57ab5 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,5 +1,5 @@ import { fileURLToPath } from "node:url"; -import { defineConfig } from "vitest/config"; +import { configDefaults, defineConfig } from "vitest/config"; import react from "@vitejs/plugin-react"; export default defineConfig({ plugins: [react()], @@ -16,5 +16,9 @@ export default defineConfig({ setupFiles: ["./vitest.setup.ts"], globals: true, server: { deps: { inline: [/@seed-design/] } }, + // e2e/ holds Playwright specs (own `test()`, own runner) — exclude them + // from Vitest's collection alongside the defaults, or `*.spec.ts` there + // gets picked up by Vitest's default include glob and fails to load. + exclude: [...configDefaults.exclude, "e2e/**"], }, });