- 生成拥有
ts-jest
预设的jest.config.js
- 安装相关依赖
yarn add --dev jest typescript ts-jest @types/jest
,用于支撑typescript写jest test - 修改
jest.config.js
为jest.config.ts
,并安装ts-node
使用ts-node
用于编译jest.config.ts
支撑jest获取该配置文件运行jest - 为了方便在vscode当中使用jest,也可以安装vscode jest插件
-
Notifications
You must be signed in to change notification settings - Fork 0
jaylenchan/typescript-jest
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
ts jest
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published