Archived
1
0

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.
This commit is contained in:
Joe Previte
2021-01-12 18:53:12 +00:00
parent bea8bb0519
commit 0a07d67c8d
5 changed files with 113 additions and 461 deletions

View File

@ -15,7 +15,8 @@
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"newLine": "lf"
"newLine": "lf",
"skipLibCheck": true
},
"include": [
"**/*.ts"