-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
66 lines (49 loc) · 1.29 KB
/
Copy pathvitest.config.ts
File metadata and controls
66 lines (49 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
56
57
58
59
60
61
62
63
64
65
66
/// <reference types="vitest" />
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
import path from "path";
export default defineConfig({
test: {
environment: "jsdom",
globals: true,
fileParallelism: false,
setupFiles: ["vitest.setup.ts"],
globalSetup: ["vitest.global.setup.ts"],
include: ["src/**/*.{spec,test}.{ts,tsx}"],
testTimeout: 10000,
coverage: {
reportsDirectory: "./coverage",
provider: "v8",
include: ["src/**/*.{ts,tsx}"],
exclude: [
"**/*.test.{ts,tsx}",
"**/*.spec.{ts,tsx}",
"**/types/**",
"**/*.d.ts",
"**/*.type.{ts,tsx}",
"**/*.types.{ts,tsx}",
"**/*.contract.{ts,tsx}",
"**/*.protocol.{ts,tsx}",
"**/*.interface.{ts,tsx}",
"src/components/**/layout.{ts,tsx}",
"**/*.mock.{ts,tsx}",
"**/*.mocks.{ts,tsx}",
"**/mocks/**",
"**/__mocks__/**",
"**/__tests__/**",
"**/__test-utils__/**",
"**/*.test-util.ts",
"**/*.story.{ts,tsx}",
"**/*.stories.{ts,tsx}",
"**/stories/**",
"**/__stories__/**",
],
},
},
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
},
},
});