-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvitest.config.ts
44 lines (43 loc) · 1.22 KB
/
vitest.config.ts
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 { join } from "path";
import { configDefaults, defineConfig } from "vitest/config";
export default defineConfig({
test: {
globals: true,
environmentMatchGlobs: [["**/*.test.ts", "**/*.test.tsx"]],
coverage: {
provider: "istanbul",
reportsDirectory: join(__dirname, "coverage"),
reporter: ["html", "text", "json-summary", "json", "lcovonly"],
reportOnFailure: true,
exclude: [
...configDefaults.exclude,
".build_run",
"build_run",
".cdk",
"docs/**",
"**/vitest.setup.ts",
"lib/libs/webforms/**",
"lib/libs/email/mock-data/**",
"react-app/src/features/webforms/**",
"TestWrapper.tsx",
"lib/stacks/**",
"lib/packages/eslint-config-custom/**",
"lib/packages/eslint-config-custom-server/**",
"lib/local-aspects",
"lib/local-constructs/**",
"bin/cli/**",
"bin/app.ts",
"vitest.workspace.ts",
"**/*/.eslintrc.{ts,js,cjs}",
"**/*.config.{ts,js,cjs}",
"**/coverage/**",
"test/e2e/**",
"mocks/**",
"**/*.js",
"**/assets/**",
"node_modules/**",
"**/node_modules/**",
],
},
},
});