Skip to content

Commit

Permalink
Use stdout when requested to print the configuration (#6447)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjesun authored and cpojer committed Jul 7, 2018
1 parent 5a0e661 commit 7a0b1d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- `[jest-runner]` Force parallel runs for watch mode, to avoid TTY freeze ([#6647](https://github.com/facebook/jest/pull/6647))
- `[jest-cli]` properly reprint resolver errors in watch mode ([#6407](https://github.com/facebook/jest/pull/6407))
- `[jest-cli]` Write configuration to stdout when the option was explicitly passed to Jest ([#6447](https://github.com/facebook/jest/pull/6447))

## 23.3.0

Expand Down
5 changes: 4 additions & 1 deletion packages/jest-cli/src/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,13 @@ const printDebugInfoAndExitIfNeeded = (
configs,
outputStream,
) => {
if (argv.debug || argv.showConfig) {
if (argv.debug) {
logDebugMessages(globalConfig, configs, outputStream);
return;
}

if (argv.showConfig) {
logDebugMessages(globalConfig, configs, process.stdout);
exit(0);
}
};
Expand Down

0 comments on commit 7a0b1d7

Please sign in to comment.