-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiff-vite.patch
More file actions
44 lines (43 loc) · 1.05 KB
/
diff-vite.patch
File metadata and controls
44 lines (43 loc) · 1.05 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
diff --git a/admin/vite.config.ts b/admin/vite.config.ts
index 6828f6fb..604fd09f 100644
--- a/admin/vite.config.ts
+++ b/admin/vite.config.ts
@@ -1,6 +1,6 @@
-import { defineConfig } from 'vitest/config'
-import react from '@vitejs/plugin-react'
-import path from 'path'
+import { defineConfig } from 'vitest/config';
+import react from '@vitejs/plugin-react';
+import path from 'path';
export default defineConfig({
plugins: [react()],
@@ -12,16 +12,20 @@ export default defineConfig({
test: {
environment: 'jsdom',
globals: true,
+ setupFiles: ['./src/test/setup.ts'],
coverage: {
provider: 'istanbul',
reporter: ['text', 'lcov', 'json-summary'],
reportsDirectory: 'coverage',
+ include: ['src/pages/Support.tsx'],
+ all: true,
thresholds: {
statements: 80,
branches: 80,
lines: 90,
functions: 90,
},
+ perFile: true,
},
},
server: {
@@ -34,4 +38,6 @@ export default defineConfig({
}
}
}
-})
\ No newline at end of file
+});
+
+