-
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.13 KB
/
vitest.config.ts
File metadata and controls
44 lines (43 loc) · 1.13 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 { defineConfig } from "vitest/config";
import { resolve } from "node:path";
export default defineConfig({
test: {
environment: "node",
setupFiles: ["./vitest.setup.ts"],
coverage: {
provider: "v8",
reporter: ["text", "html"],
include: [
"packages/lambdas/spotifyProxy/src/**/*.ts",
"packages/lambdas/refreshSubscriptions/src/**/*.ts",
"packages/lambdas/profile/src/**/*.ts",
],
exclude: [
"packages/lambdas/spotifyProxy/src/**/*.test.ts",
"packages/lambdas/spotifyProxy/src/**/*.d.ts",
"packages/lambdas/refreshSubscriptions/src/**/*.test.ts",
"packages/lambdas/refreshSubscriptions/src/**/*.d.ts",
"packages/lambdas/profile/src/**/*.test.ts",
"packages/lambdas/profile/src/**/*.d.ts",
],
},
globals: false,
include: ["**/*.test.ts"],
exclude: [
"node_modules",
"dist",
"build",
"coverage",
"cdk.out",
"**/dist/**",
],
},
resolve: {
alias: [
{
find: "@shared",
replacement: resolve(__dirname, "packages/shared/src"),
},
],
},
});