Skip to content

Commit

Permalink
feat(npm-scripts): run only tests for affected files in prepush and e…
Browse files Browse the repository at this point in the history
…xit immediately if some tests f
  • Loading branch information
Hotell committed Jun 4, 2017
1 parent 7fc44b1 commit d4316b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -23,6 +23,7 @@
"test": "jest",
"test:watch": "npm test -- --watch",
"test:coverage": "npm test -- --coverage",
"test:only-changed": "npm test -- --bail --onlyChanged",
"ts:lint": "tslint --project tsconfig.json --type-check \"src/**/*.{ts,tsx}\"",
"ts:lint:fix": "npm run ts:lint -- --fix",
"ts:format:base": "prettier --single-quote --print-width 120 --trailing-comma es5 --no-semi --parser typescript {src,__{tests,mocks}__}/**/*.{ts,tsx}",
Expand All @@ -34,7 +35,7 @@
"cz": "git-cz",
"precommit": "lint-staged",
"commitmsg": "validate-commit-msg",
"prepush": "npm run verify",
"prepush": "npm run ts:style && npm run test:only-changed",
"prerelease": "npm run build",
"release": "standard-version",
"postrelease": "npm run release:github && npm run release:npm",
Expand Down

0 comments on commit d4316b4

Please sign in to comment.