Skip to content

Commit 2133caa

Browse files
priosshrsthclaude
andcommitted
fix: add test/tsconfig.json so IDE resolves path aliases in test files
Keep src/ isolated in the root tsconfig to prevent accidental imports of test-only exports into source code. The test tsconfig extends root and covers both src/ and test/ — VS Code/Zed pick it up automatically for any file under test/. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d001c15 commit 2133caa

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

test/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"include": ["../src/**/*", "./**/*"]
4+
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"noPropertyAccessFromIndexSignature": false
2727
},
2828

29-
"include": ["src/**/*", "test/**/*"],
29+
"include": ["src/**/*"],
3030
"exclude": ["node_modules", "dist", "bunup.config.ts"]
3131
}

0 commit comments

Comments
 (0)