Skip to content

Commit

Permalink
chore: print info about passWithNoTests flag (#7309)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Dec 24, 2018
1 parent f7f65bf commit 02aee62
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
- `[jest-cli]` Support dashed args ([#7497](https://github.com/facebook/jest/pull/7497))
- `[jest-cli]` Fix to run in band tests if watch mode enable when runInBand arg used ([#7518](https://github.com/facebook/jest/pull/7518))
- `[jest-runtime]` Fix mistake as test files when run coverage issue. ([#7506](https://github.com/facebook/jest/pull/7506))
- `[jest-cli]` print info about passWithNoTests flag ([#7309](https://github.com/facebook/jest/pull/7309))

### Chore & Maintenance

Expand Down
4 changes: 3 additions & 1 deletion packages/jest-cli/src/getNoTestFound.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export default function getNoTestFound(testRunData, globalConfig): string {
}

return (
chalk.bold('No tests found') +
chalk.bold('No tests found, exiting with code 1') +
'\n' +
'Run with `--passWithNoTests` to exit with code 0' +
'\n' +
`In ${chalk.bold(process.cwd())}` +
'\n' +
Expand Down
4 changes: 3 additions & 1 deletion packages/jest-cli/src/getNoTestFoundVerbose.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ export default function getNoTestFoundVerbose(
}

return (
chalk.bold('No tests found') +
chalk.bold('No tests found, exiting with code 1') +
'\n' +
'Run with `--passWithNoTests` to exit with code 0' +
'\n' +
individualResults.join('\n') +
'\n' +
Expand Down

0 comments on commit 02aee62

Please sign in to comment.