fix(vitest): exclude node_modules and type tests from test discovery
Vitest was running type-checking tests from @testing-library/jest-dom in node_modules, causing import resolution failures. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -7,7 +7,7 @@ export default defineConfig({
|
||||
environment: "jsdom",
|
||||
setupFiles: ["./src/test/setup.ts"],
|
||||
globals: true,
|
||||
exclude: ["e2e/**"],
|
||||
exclude: ["e2e/**", "**/node_modules/**", "**/types/__tests__/**"],
|
||||
coverage: {
|
||||
provider: "v8",
|
||||
include: ["src/**"],
|
||||
|
||||
Reference in New Issue
Block a user