-
Notifications
You must be signed in to change notification settings - Fork 156
Expand file tree
/
Copy pathvitest.tsconfig.json
More file actions
35 lines (35 loc) · 1.22 KB
/
vitest.tsconfig.json
File metadata and controls
35 lines (35 loc) · 1.22 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
{
// Vitest-only TypeScript config for intellisense in .vitest.{ts,tsx} files.
// Extends the main src tsconfig but adds Vitest global types.
// Does NOT affect the main build -- only used by Vitest and IDE language services.
"extends": "./src/tsconfig.json",
"compilerOptions": {
// TypeScript's "types" field replaces the parent's array rather than
// merging, so we re-list the ambient types from src/tsconfig.json that
// Vitest tests (or the code they import) might rely on, plus Vitest's
// own globals. Omits "mocha" (conflicts with Vitest's describe/it) and
// "sinon" (Mocha-era, migrated away from).
"types": [
"@webgpu/types",
"semver",
"trusted-types",
"winreg",
"wicg-file-system-access",
"vitest/globals"
]
},
"include": [
"src/vs/**/*.vitest.ts",
"src/vs/**/*.vitest.tsx",
"src/vs/test/vitest/**/*",
// Add files from the base tsconfig that we need for Vitest tests
"src/typings",
"src/positron-dts/positron.d.ts",
"src/positron-dts/ui-comm.d.ts",
"src/vscode-dts/vscode.proposed.*.d.ts",
"src/vscode-dts/vscode.d.ts"
],
// Reset the exclude list so we aren't inheriting it from base tsconfig
// which excludes vitest files that we DO want to include here.
"exclude": []
}