From 6e84d99d46bda7b9f915300caf0e64e4474850f8 Mon Sep 17 00:00:00 2001 From: Munkherdene Date: Sat, 22 Aug 2026 21:10:48 +0800 Subject: [PATCH] test(web): exclude e2e/ from vitest collection --- vitest.config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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/**"], }, });