Reworking test commands to include lint with unit tests

Also adding a test:watch command
This commit is contained in:
Jeff Avallone 2018-02-10 19:23:56 -05:00
parent 10125066d9
commit c38a9ddb3b

View File

@ -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": {