Skip to content

Commit f4c8079

Browse files
committed
Add TypeScript configurations for test files
- tsconfig.test.json: Extends base config for test file type checking - .config/tsconfig.check.json: Check config including test files Enables proper TypeScript support for test directory.
1 parent ac07c2d commit f4c8079

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

.config/tsconfig.check.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": true,
5+
"rootDir": "..",
6+
"types": ["node", "vitest"],
7+
"skipLibCheck": true,
8+
"strict": false,
9+
"noImplicitAny": false
10+
},
11+
"include": ["../src/**/*.ts", "../test/**/*.ts", "../test/**/*.mts"],
12+
"exclude": ["../node_modules", "../dist/**/*"]
13+
}

tsconfig.test.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": ".",
5+
"types": ["node", "vitest"]
6+
},
7+
"include": ["test/**/*.ts", "test/**/*.mts", "src/**/*.ts"],
8+
"exclude": ["node_modules", "dist/**/*"]
9+
}

0 commit comments

Comments
 (0)