-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathvitest.config.ts
More file actions
55 lines (54 loc) · 1.29 KB
/
vitest.config.ts
File metadata and controls
55 lines (54 loc) · 1.29 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
48
49
50
51
52
53
54
55
import { defineConfig } from "vitest/config";
import { resolve } from "path";
import vue from "@vitejs/plugin-vue";
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
"/assets": resolve(__dirname, "src/renderer/public/assets"),
},
},
esbuild: {
target: "ES2020",
},
test: {
typecheck: {
enabled: true,
tsconfig: "./tsconfig.test.json",
},
environment: "jsdom",
include: ["src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
root: "./",
setupFiles: ["src/renderer/src/test-setup.ts"],
globalSetup: ["src/vitest-global-setup.ts"],
coverage: {
provider: "v8",
include: ["src/**/*.{js,ts,vue}"],
all: false,
clean: true,
skipFull: false,
reportOnFailure: true,
exclude: [
"coverage/**",
"dist/**",
".vite/**",
"node_modules/**",
"**/*.d.ts",
"archive-static-sites/**",
"docs/**",
"scripts/**",
"build/**",
"assets/**",
"testdata/**",
"forge.config.ts",
"vite.*.config.ts",
"eslint.config.mjs",
"**/*.{test,spec}.{js,ts,tsx,vue}",
"**/test-setup.ts",
"**/test_util.ts",
"**/test_utils.ts",
"**/test_fixtures.ts",
],
},
},
});