Skip to content

Commit 02aee62

Browse files
authoredDec 24, 2018
chore: print info about passWithNoTests flag (#7309)
1 parent f7f65bf commit 02aee62

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed
 

‎CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
- `[jest-cli]` Support dashed args ([#7497](https://github.com/facebook/jest/pull/7497))
9696
- `[jest-cli]` Fix to run in band tests if watch mode enable when runInBand arg used ([#7518](https://github.com/facebook/jest/pull/7518))
9797
- `[jest-runtime]` Fix mistake as test files when run coverage issue. ([#7506](https://github.com/facebook/jest/pull/7506))
98+
- `[jest-cli]` print info about passWithNoTests flag ([#7309](https://github.com/facebook/jest/pull/7309))
9899

99100
### Chore & Maintenance
100101

‎packages/jest-cli/src/getNoTestFound.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ export default function getNoTestFound(testRunData, globalConfig): string {
2121
}
2222

2323
return (
24-
chalk.bold('No tests found') +
24+
chalk.bold('No tests found, exiting with code 1') +
25+
'\n' +
26+
'Run with `--passWithNoTests` to exit with code 0' +
2527
'\n' +
2628
`In ${chalk.bold(process.cwd())}` +
2729
'\n' +

‎packages/jest-cli/src/getNoTestFoundVerbose.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ export default function getNoTestFoundVerbose(
4848
}
4949

5050
return (
51-
chalk.bold('No tests found') +
51+
chalk.bold('No tests found, exiting with code 1') +
52+
'\n' +
53+
'Run with `--passWithNoTests` to exit with code 0' +
5254
'\n' +
5355
individualResults.join('\n') +
5456
'\n' +

0 commit comments

Comments
 (0)
Please sign in to comment.