-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
vite.config.js
34 lines (33 loc) · 787 Bytes
/
vite.config.js
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
/// <reference types="vitest" />
import reactRefresh from "@vitejs/plugin-react-refresh";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [reactRefresh()],
test: {
globals: true,
environment: "jsdom",
setupFiles: ["./setupTest.js"],
exclude: [
"**/node_modules/**",
"**/dist/**",
"**/cypress/**",
"**/.{idea,git,cache,output,temp}/**",
"**/lib/**",
],
coverage: {
reporter: ["text", "json", "html"],
statements: 98,
branches: 95,
functions: 97,
lines: 98,
exclude: [
"**/node_modules/**",
"**/dist/**",
"**/cypress/**",
"**/.{idea,git,cache,output,temp}/**",
"**/lib/**",
"**/__tests__/**",
],
},
},
});