forked from vercel-labs/json-render
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
24 lines (23 loc) · 730 Bytes
/
vitest.config.ts
File metadata and controls
24 lines (23 loc) · 730 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
import { defineConfig } from "vitest/config";
import path from "path";
export default defineConfig({
resolve: {
// Deduplicate React so tests don't get two copies
// (pnpm strict resolution can cause packages/react to resolve a different copy)
alias: {
react: path.resolve(__dirname, "node_modules/react"),
"react-dom": path.resolve(__dirname, "node_modules/react-dom"),
},
},
test: {
globals: true,
environment: "jsdom",
include: ["packages/**/*.test.ts", "packages/**/*.test.tsx"],
coverage: {
provider: "v8",
reporter: ["text", "json", "html"],
include: ["packages/*/src/**/*.{ts,tsx}"],
exclude: ["**/*.test.{ts,tsx}", "**/index.ts"],
},
},
});