jest-global-types-with-typeroots:https

时间:2024-03-26 08:28:51
【文件属性】:

文件名称:jest-global-types-with-typeroots:https

文件大小:64KB

文件格式:ZIP

更新时间:2024-03-26 08:28:51

TypeScript

$ 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", () => { ~~~~


【文件预览】:
jest-global-types-with-typeroots-master
----.gitignore(2KB)
----package.json(330B)
----src()
--------index.test.ts(58B)
----tsconfig.json(261B)
----README.md(673B)
----yarn.lock(155KB)
----tsconfig.tr.json(106B)

网友评论