-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
55 lines (53 loc) · 1.63 KB
/
Copy pathvitest.config.ts
File metadata and controls
55 lines (53 loc) · 1.63 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
import { defineConfig } from "vitest/config";
import { resolve } from "path";
export const globalExclude = [
"**/node_modules/**",
"**/packages/tmp/**",
"**/tmp/**",
"**/vendor/**",
"**/scripts/**",
"**/.stryker-tmp/**",
];
export default defineConfig({
test: {
typecheck: {
enabled: true,
include: ["**/inference.test.ts"],
exclude: globalExclude,
},
globals: true,
environment: "node",
setupFiles: ["./vitest.setup.ts"],
exclude: [
...globalExclude,
"**/dist/**",
"**/packages/main/integrations/**",
"**/packages/main/website/**",
"**/.{idea,git,cache,output,temp}/**",
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*",
],
coverage: {
reportsDirectory: "reports/coverage",
include: ["packages/pithos/src/**/*.ts"],
exclude: [
...globalExclude,
"**/dist/**",
"**/reports/**",
"**/packages/pithos/src/kanon/v1/**",
"**/packages/pithos/src/kanon/v2/**",
],
},
},
resolve: {
alias: {
"@arkhe": resolve(__dirname, "./packages/pithos/src/arkhe"),
"@kanon": resolve(__dirname, "./packages/pithos/src/kanon"),
"@zygos": resolve(__dirname, "./packages/pithos/src/zygos"),
"@taphos": resolve(__dirname, "./packages/pithos/src/taphos"),
"@sphalma": resolve(__dirname, "./packages/pithos/src/sphalma"),
"@bridges": resolve(__dirname, "./packages/pithos/src/bridges"),
"@eidos": resolve(__dirname, "./packages/pithos/src/eidos"),
_internal: resolve(__dirname, "./packages/pithos/src/_internal"),
},
},
});