Skip to content

Commit 409ac6a

Browse files
committed
Include test dirs to please TypeScript 6 in VSCode
Though it all works fine from command line, in VSCode it doesn't infer that jest and node types are available.
1 parent 313720f commit 409ac6a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
33
"module": "NodeNext",
4+
"types": ["node", "jest"],
45
"target": "es6",
56
"lib": ["es6"],
67
"rootDirs": ["src"],
@@ -12,6 +13,6 @@
1213
"noImplicitReturns": true,
1314
"isolatedModules": true
1415
},
15-
"include": ["src"],
16+
"include": ["src", "test", "perf"],
1617
"exclude": ["node_modules"]
1718
}

0 commit comments

Comments
 (0)