-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathvitest.config.ts
More file actions
41 lines (40 loc) · 930 Bytes
/
vitest.config.ts
File metadata and controls
41 lines (40 loc) · 930 Bytes
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
import * as path from "node:path";
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "node",
server: {
sourcemap: "inline",
},
fileParallelism: true,
name: "Pingu",
typecheck: {
enabled: true,
checker: "vue-tsc",
ignoreSourceErrors: true,
tsconfig: path.resolve(__dirname, "./tsconfig.json"),
},
coverage: {
all: false,
clean: true,
provider: "v8",
cleanOnRerun: true,
reportOnFailure: true,
include: ["**/src/**"],
reporter: ["clover", "json", "html", "html-spa"],
reportsDirectory: path.resolve(__dirname, "./coverage"),
},
dir: path.resolve(__dirname, "./tests"),
cache: false,
globals: true,
pool: "forks",
poolOptions: {
threads: {
singleThread: true,
},
forks: {
singleFork: true,
},
},
},
});