diff --git a/utils/husky-init.js b/utils/husky-init.js index df35b6e6..a0f6ff0e 100644 --- a/utils/husky-init.js +++ b/utils/husky-init.js @@ -23,7 +23,7 @@ function initializeHusky() { if (localGitHooks.length === 0) { shell.exec("yarn husky add .husky/commit-msg 'yarn commitlint --edit'"); shell.exec("yarn husky add .husky/pre-commit 'yarn lint && yarn pretty-quick --staged'"); - shell.exec("yarn husky add .husky/pre-push 'yarn build && yarn test --forbid-only'"); + shell.exec("yarn husky add .husky/pre-push 'yarn build && yarn run test:only -- --forbid-only'"); } } catch (err) { if (err.code === 'ENOENT') {