Skip to content

Commit 23071c7

Browse files
committed
[jest-runner] Don't print warning to stdout when using --json
1 parent 3681cca commit 23071c7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- `[jest-circus]` Throw on nested test definitions ([#9828](https://github.com/facebook/jest/pull/9828))
1414
- `[jest-changed-files]` `--only-changed` should include staged files ([#9799](https://github.com/facebook/jest/pull/9799))
1515
- `[jest-each]` `each` will throw an error when called with too many arguments ([#9818](https://github.com/facebook/jest/pull/9818))
16+
- `[jest-runner]` Don't print warning to stdout when using `--json` ([#]())
1617

1718
### Chore & Maintenance
1819

packages/jest-runner/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class TestRunner {
194194
const cleanup = async () => {
195195
const {forceExited} = await worker.end();
196196
if (forceExited) {
197-
console.log(
197+
console.error(
198198
chalk.yellow(
199199
'A worker process has failed to exit gracefully and has been force exited. ' +
200200
'This is likely caused by tests leaking due to improper teardown. ' +

0 commit comments

Comments
 (0)