ysz-test-sdk
Version:
* 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
39 lines (38 loc) • 748 B
JSON
{
"name": "ysz-test-sdk",
"version": "0.0.4",
"description": "",
"main": "dist/index.js",
"scripts": {
"build": "tsc --build --force --verbose",
"test": "jest --verbose --colors --bail",
"testw": "jest --watch",
"testc": "jest --coverage"
},
"keywords": [
"efox",
"websdk"
],
"author": "",
"license": "ISC",
"devDependencies": {
"@types/jest": "^23.3.2",
"jest": "^23.6.0",
"ts-jest": "^23.1.4",
"typescript": "^3.0.3"
},
"jest": {
"transform": {
"^.+\\.(t|j)sx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
}
}