2019-01-08 08:46:19 +08:00
|
|
|
{
|
|
|
|
"scripts": {
|
|
|
|
"build:rules": "cd ./rules && yarn build",
|
2019-01-12 01:47:23 +08:00
|
|
|
"postinstall": "ts-node ./scripts/src/install-packages.ts && yarn build:rules",
|
2019-01-08 08:46:19 +08:00
|
|
|
"test": "jest"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@types/jest": "^23.3.12",
|
|
|
|
"jest": "^23.6.0",
|
|
|
|
"ts-jest": "^23.10.5",
|
|
|
|
"ts-node": "^7.0.1",
|
2019-01-12 01:47:23 +08:00
|
|
|
"tslint": "^5.12.1",
|
|
|
|
"typescript-tslint-plugin": "^0.2.1"
|
2019-01-08 08:46:19 +08:00
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"xmlhttprequest": "1.8.0"
|
|
|
|
},
|
|
|
|
"jest": {
|
|
|
|
"moduleFileExtensions": [
|
|
|
|
"ts",
|
|
|
|
"tsx",
|
|
|
|
"js",
|
|
|
|
"json"
|
|
|
|
],
|
|
|
|
"setupFiles": [
|
2019-01-12 01:47:23 +08:00
|
|
|
"<rootDir>/scripts/src/test-setup.js"
|
2019-01-08 08:46:19 +08:00
|
|
|
],
|
|
|
|
"moduleNameMapper": {
|
2019-01-12 01:47:23 +08:00
|
|
|
"^.+\\.(s?css|png|svg)$": "<rootDir>/scripts/src/dummy.js",
|
2019-01-12 03:33:44 +08:00
|
|
|
"@coder/(.*)/testing": "<rootDir>/$1/testing",
|
|
|
|
"@coder/(.*)": "<rootDir>/$1/src"
|
2019-01-08 08:46:19 +08:00
|
|
|
},
|
|
|
|
"transform": {
|
|
|
|
"^.+\\.tsx?$": "ts-jest"
|
|
|
|
},
|
|
|
|
"testPathIgnorePatterns": [
|
|
|
|
"/node_modules/",
|
|
|
|
"/logger/"
|
|
|
|
],
|
|
|
|
"testRegex": ".*\\.test\\.tsx?"
|
|
|
|
}
|
|
|
|
}
|