Configure jest -- fix a few common issues
This commit is contained in:
1 parent
ad8b554f04
commit
256ba0d42f
5 files changed
+143
-10
No files matched your search
+10
-5
@@ -20,10 +20,10 @@
|
||||
"lint": "eslint -c .eslintrc --fix src && prettier --single-quote --write src/**/*.{js,jsx,json,css}",
|
||||
"prepare": "yarn run build",
|
||||
"predeploy": "cd example && npm install && yarn run build",
|
||||
"staticDeploy": "./generateStaticSite.sh",
|
||||
"test:watch": "react-scripts test --env=jsdom",
|
||||
"test": "cross-env CI=1 react-scripts test --env=jsdom",
|
||||
"test": "jest",
|
||||
"test:ci": "jest --ci --runInBand --collectCoverage --reporters=default --reporters=jest-junit && codecov",
|
||||
"copy:webworkers": "cpx 'node_modules/cornerstone-wado-image-loader/dist/*.min.js*' public",
|
||||
"staticDeploy": "./generateStaticSite.sh",
|
||||
"version": "node -p -e \"'export default \\'' + require('./package.json').version + '\\';'\" > src/version.js",
|
||||
"details": "yarn run version",
|
||||
"prep": "yarn run details && yarn run copy:webworkers",
|
||||
@@ -46,7 +46,7 @@
|
||||
"dicom-parser": "^1.8.3",
|
||||
"dicomweb-client": "^0.4.2",
|
||||
"hammerjs": "^2.0.8",
|
||||
"lodash.isequal": "^4.5.0",
|
||||
"lodash.isequal": "4.5.0",
|
||||
"moment": "^2.24.0",
|
||||
"ohif-core": "^0.3.5",
|
||||
"ohif-cornerstone-extension": "^0.0.26",
|
||||
@@ -85,12 +85,17 @@
|
||||
"eslint-plugin-promise": "^4.0.1",
|
||||
"eslint-plugin-react": "^7.11.1",
|
||||
"husky": "1.3.x",
|
||||
"identity-obj-proxy": "3.0.x",
|
||||
"jest-canvas-mock": "2.0.0",
|
||||
"jest-junit": "6.3.x",
|
||||
"lint-staged": "^8.1.0",
|
||||
"lodash.clonedeep": "^4.5.0",
|
||||
"lodash": "4.17.11",
|
||||
"lodash.clonedeep": "4.5.0",
|
||||
"prettier": "1.15.x",
|
||||
"react": "^16.7.0",
|
||||
"react-dom": "^16.7.0",
|
||||
"react-scripts": "^2.1.5",
|
||||
"react-test-renderer": "^16.8.6",
|
||||
"rollup": "^1.1.2",
|
||||
"rollup-plugin-babel": "^4.2.0",
|
||||
"rollup-plugin-commonjs": "^9.2.0",
|
||||
|
||||
Reference in new issue
Block a user