forked from leonitousconforti/the-moby-effect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
44 lines (43 loc) · 1.24 KB
/
vitest.config.ts
File metadata and controls
44 lines (43 loc) · 1.24 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
import viteTsconfigPaths from "vite-tsconfig-paths";
import { defineConfig } from "vitest/config";
export default defineConfig({
plugins: [viteTsconfigPaths()],
esbuild: {
target: "es2020",
},
test: {
setupFiles: ["./test/setup-file.ts"],
globalSetup: "./test/setup-global.ts",
include: ["./test/**/*.test.ts"],
fakeTimers: {
toFake: undefined,
},
fileParallelism: false,
sequence: {
concurrent: true,
},
coverage: {
all: true,
provider: "v8",
include: ["src/**/*.ts"],
exclude: ["src/generated/**/*.ts", "src/schemas/**/*.ts", "src/blob/**/*.ts"],
reporter: ["cobertura", "text"],
},
reporters: ["default", "hanging-process", ["junit", { outputFile: "./coverage/junit.xml" }]],
},
server: {
watch: {
ignored: [
"**/node_modules/**",
"**/.git/**",
"**/submodules/**",
"**/patches/**",
"**/dist/**",
"**/build/**",
"**/experiments/**",
"**/coverage/**",
"**/ui/**",
],
},
},
});