1. 首页
  2. 数据库
  3. 其它
  4. jest global types with typeroots:https 源码

jest global types with typeroots:https 源码

上传者: 2021-04-07 04:17:30上传 ZIP文件 64.36KB 热度 21次
$ yarn $ yarn tsc yarn run v1.22.5 $ tsc Done in 1.71s. $ yarn tsc-tr yarn run v1.22.5 $ tsc -p tsconfig.tr.json src/index.test.ts:1:1 - error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. 1 test("42", () => { ~~~~
下载地址
用户评论