Skip to content

Commit 4e2ceb1

Browse files
build: fix typescript config for test folders
This change fixes the errors in VS Code for the test files.
1 parent a39a8de commit 4e2ceb1

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

test/tsconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
// This TS config is added for VS Code, so it understand the test files are
3+
// using the tsconfig.spec.json file instead of the default one.
4+
"extends": "../tsconfig.spec.json",
5+
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"target": "es2018",
66
"lib": ["es2018"],
77
"outDir": "build/node",
8-
"rootDir": "./src",
8+
"rootDirs": ["./src"],
99
"strict": true,
1010
"sourceMap": true,
1111
"removeComments": false,

tsconfig.spec.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4+
"rootDirs": ["./src", "./test"],
45
"strict": false,
56
"strictPropertyInitialization": false,
67
"sourceMap": false,

0 commit comments

Comments
 (0)