0.0.4 • Published 6 years ago
ysz-test-sdk v0.0.4
配置ts jest
- 1 npm install --save-dev jest ts-jest @types/jest
- 2 Modify your project's package.json
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
}