Skip to content

Commit b1f7f1b

Browse files
chore(tsconfig): override rootDir in tsconfig.test.json
Set rootDir to "." in `tsconfig.test.json` to override the inherited value from `tsconfig.build.json`. This allows TypeScript to type-check files outside the src directory (tests, benchmarks, configs).
1 parent 796f4de commit b1f7f1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tsconfig.test.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"moduleResolution": "nodenext",
77
"types": ["vitest/globals"],
88
"noEmit": true,
9-
"allowJs": true
9+
"allowJs": true,
10+
"rootDir": "."
1011
},
1112
"include": [
1213
"__tests__",

0 commit comments

Comments
 (0)