-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathvite.config.ts
More file actions
47 lines (45 loc) · 1.03 KB
/
vite.config.ts
File metadata and controls
47 lines (45 loc) · 1.03 KB
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
42
43
44
45
46
47
/// <reference types="vitest" />
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
export default defineConfig({
base: "/",
plugins: [react(), tailwindcss()],
server: {
host: true,
port: 5173,
strictPort: true,
},
test: {
environment: "jsdom",
setupFiles: "./src/setupTests.ts",
globals: true,
css: true,
coverage: {
provider: "v8",
reporter: ["text", "lcov", "html", "json-summary", "json"],
reportsDirectory: "./coverage",
reportOnFailure: true,
include: ["src/**/*.{ts,tsx}"],
exclude: [
"node_modules/",
"dist/",
"vite.config.ts",
"**/*.d.ts",
"**/*.config.{ts,js}",
"**/setupTests.ts",
"src/vite-env.d.ts",
"src/index.css",
"src/main.tsx",
"src/types/**",
],
all: true,
thresholds: {
lines: 100,
functions: 100,
branches: 100,
statements: 100,
},
},
},
});