Reworking test commands to include lint with unit tests
Also adding a test:watch command
This commit is contained in:
parent
10125066d9
commit
c38a9ddb3b
@ -14,8 +14,10 @@
|
|||||||
"start:prod": "run-s build start:http-server",
|
"start:prod": "run-s build start:http-server",
|
||||||
"start:http-server": "http-server ./build",
|
"start:http-server": "http-server ./build",
|
||||||
"build": "webpack --config webpack.prod.js",
|
"build": "webpack --config webpack.prod.js",
|
||||||
"test": "jest",
|
"test": "run-s test:lint test:unit",
|
||||||
|
"test:unit": "jest",
|
||||||
"test:lint": "eslint --ignore-path .gitignore .",
|
"test:lint": "eslint --ignore-path .gitignore .",
|
||||||
|
"test:watch": "yarn test:unit --watch",
|
||||||
"precommit": "run-s test:lint"
|
"precommit": "run-s test:lint"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
|
Loading…
Reference in New Issue
Block a user