-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
41 lines (40 loc) · 1.08 KB
/
vitest.config.ts
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
34
35
36
37
38
39
40
41
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";
import path from "path";
export default defineConfig({
plugins: [react(), tsconfigPaths()],
test: {
globals: true,
environment: "jsdom",
setupFiles: "./vitest.setup.ts",
exclude: ["**/node_modules/**", "**/dist/**", "**/e2e/**"],
coverage: {
all: false,
provider: "v8",
thresholds: {
global: {
statements: 95,
branches: 95,
functions: 95,
lines: 95,
},
},
},
css: false,
alias: {
"@metrostar/comet-uswds": path.resolve(
__dirname,
"node_modules/@metrostar/comet-uswds/dist/esm/index.js"
),
"@metrostar/comet-extras": path.resolve(
__dirname,
"node_modules/@metrostar/comet-extras/dist/esm/index.js"
),
"@components/comet": path.resolve(
__dirname,
"node_modules/@metrostar/comet-uswds/dist/esm/index.js"
), // This is necessary to prevent cjs/esm conflicts
},
},
});