How does module resolution in TypeScript work for global values (i.e. describe)?

风格不统一 提交于 2019-12-05 00:33:12

CompilerOptions.types allow you to restrict the typings you want to be available in the scope(folder)

You can try the following: Create a top level tsconfig.json with CompilerOptions.types = []

Inside test folder create tsconfig.json and choose jest typings CompilerOptions.types = ['jest']

Similarly inside integration folder, create tsconfig.json and choose mocha typings CompilerOptions.types = ['mocha']

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!