Skip to content

Commit 67cba2a

Browse files
committed
fix(precommit): add in --passWithNoTests flag to enable precommit hook to succeed with no tests
#1020
1 parent f85242a commit 67cba2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/web-scripts/config/lint-staged.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const eslintConfig = process.env.WEB_SCRIPTS_ESLINT_CONFIG || getEslintConfig();
2525

2626
const testRelatedChanges = `jest ${
2727
jestConfig ? `--config ${jestConfig} ` : ''
28-
}--bail --findRelatedTests`;
28+
}--bail --findRelatedTests --passWithNoTests`;
2929

3030
const lintRelatedChanges = `eslint --fix ${
3131
eslintConfig ? `--config ${eslintConfig}` : ''

0 commit comments

Comments
 (0)