Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.

Commit 13ccd36

Browse files
committed
build: avoid watching tests on push
1 parent 67177f4 commit 13ccd36

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

husky.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ module.exports = {
22
hooks: {
33
'commit-msg': 'commitlint -e $HUSKY_GIT_PARAMS',
44
'pre-commit': 'lint-staged',
5-
'pre-push': 'npm test',
5+
'pre-push': 'npm run-script test:ci',
66
},
77
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"build:locales": "formatjs extract './src/messages.js' --messages-dir './messages' && node './src/core/scripts/build-locales.js' && rm -rvf './messages'",
2929
"build:gh-pages": "npm run build && gh-pages -d build",
3030
"test": "craco test",
31+
"test:ci": "craco test --watchAll=false",
3132
"prettier": "prettier \"**/*.+(js|jsx|ts|tsx|json|md)\"",
3233
"use-typescript": "node src/core/scripts/use-typescript.js"
3334
},

0 commit comments

Comments
 (0)