-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.shared.ts
More file actions
30 lines (28 loc) · 842 Bytes
/
vitest.shared.ts
File metadata and controls
30 lines (28 loc) · 842 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
import * as path from "node:path";
import viteTsconfigPaths from "vite-tsconfig-paths";
import type { ViteUserConfig } from "vitest/config";
const config: ViteUserConfig = {
plugins: [viteTsconfigPaths()],
esbuild: {
target: "es2020",
},
test: {
setupFiles: [path.join(__dirname, "vitest.setup.ts")],
fakeTimers: {
toFake: undefined,
},
sequence: {
concurrent: true,
},
include: ["test/**/*.test.ts"],
reporters: ["default", "hanging-process", ["junit", { outputFile: "./coverage/junit.xml" }]],
coverage: {
all: true,
provider: "v8",
include: ["src/**/*.ts"],
reporter: ["cobertura", "text"],
reportsDirectory: "coverage",
},
},
};
export default config;