-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
22 lines (21 loc) · 953 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
22 lines (21 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { defineConfig } from "vitest/config";
// Shared defaults for every project in the Vitest workspace (vitest.workspace.ts).
// Internal `@repo/*` packages are consumed as TypeScript source (no build step),
// so Vitest's esbuild transform compiles them on the fly — nothing to pre-build.
export default defineConfig({
test: {
// Unit tests live next to the code they cover, under packages/*.
include: ["packages/*/src/**/*.{test,spec}.{ts,tsx}"],
// Keep Playwright's e2e/ specs out of the Vitest run; they have their own runner.
exclude: ["**/node_modules/**", "**/dist/**", "**/.next/**", "e2e/**"],
environment: "node",
// Quiet, deterministic output for CI logs.
reporters: process.env.CI ? ["dot"] : ["default"],
coverage: {
provider: "v8",
reporter: ["text", "html"],
include: ["packages/*/src/**/*.{ts,tsx}"],
exclude: ["**/*.{test,spec}.{ts,tsx}", "**/*.d.ts"],
},
},
});