Skip to content

Commit 8a89d6a

Browse files
authored
Merge pull request #1060 from ekh64/precommit
fix(precommit): add in --passWithNoTests flag to test step
2 parents f85242a + 67cba2a commit 8a89d6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)