test(web): exclude e2e/ from vitest collection
This commit is contained in:
parent
95729de201
commit
6e84d99d46
1 changed files with 5 additions and 1 deletions
|
|
@ -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/**"],
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue