test(web): exclude e2e/ from vitest collection

This commit is contained in:
Munkherdene 2026-08-22 21:10:48 +08:00
parent 95729de201
commit 6e84d99d46

View file

@ -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/**"],
},
});