-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
33 lines (32 loc) · 944 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
33 lines (32 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
plugins: [react(), tsconfigPaths()],
test: {
environment: "jsdom",
globals: true,
setupFiles: ["./vitest.setup.ts"],
include: [
"app/**/*.{test,spec}.{ts,tsx}",
"components/**/*.{test,spec}.{ts,tsx}",
"lib/**/*.{test,spec}.{ts,tsx}",
],
exclude: ["**/node_modules/**", "**/e2e/**", "**/*.integration.{test,spec}.ts"],
coverage: {
provider: "v8",
reporter: ["text", "html", "lcov"],
include: ["lib/**", "components/**"],
exclude: ["**/*.d.ts", "**/*.config.ts", "**/types.ts", "**/*.stories.tsx"],
thresholds: {
lines: 0,
branches: 0,
functions: 0,
statements: 0,
},
},
bail: process.env.CI ? 1 : 0,
isolate: true,
testTimeout: 5000,
},
});