-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathvitest.config.mts
More file actions
32 lines (32 loc) · 936 Bytes
/
vitest.config.mts
File metadata and controls
32 lines (32 loc) · 936 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
31
32
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
typecheck: {
enabled: true,
tsconfig: "./tests/tsconfig.json",
},
projects: [
{
test: {
globals: true,
name: "unit",
environment: "node",
root: "./tests",
include: ["**/*.test.{js,ts,jsx,tsx}"],
exclude: ["wire/**"],
setupFiles: ["./setup.ts"],
},
},
{
test: {
globals: true,
name: "wire",
environment: "node",
root: "./tests/wire",
setupFiles: ["../setup.ts", "../mock-server/setup.ts"],
},
},
],
passWithNoTests: true,
},
});