Skip to content

Commit aa0cf17

Browse files
committed
fix: prevent mocha/jest types conlict
Modify the tsconfig.json in lib/vscode/src/build. This adds the flag skipLibCheck: true to tell TypeScript to not type-check the declaration files at build time. We need to add this because otherwise it checks the declaration files and reports an error of duplicate type definitions because we use Jest for our tests and they use Mocha and they both use the global namespace "test" in their .d.ts files.
1 parent 6e2d09c commit aa0cf17

File tree

2 files changed

+36
-389
lines changed

2 files changed

+36
-389
lines changed

lib/vscode/build/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"strict": true,
1616
"noUnusedLocals": true,
1717
"noUnusedParameters": true,
18-
"newLine": "lf"
18+
"newLine": "lf",
19+
"skipLibCheck": true
1920
},
2021
"include": [
2122
"**/*.ts"

0 commit comments

Comments
 (0)