Skip to content

Commit 7bc4a10

Browse files
authored
chore(jest-runner): Add info regarding timers to forceExited message (#12083)
1 parent 1f813fa commit 7bc4a10

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
### Chore & Maintenance
1919

20+
- `[jest-runner]` Add info regarding timers to forcedExit message([#12083](https://github.com/facebook/jest/pull/12083))
2021
- `[*]` Replaced `substr` method with `substring` ([#12066](https://github.com/facebook/jest/pull/12066))
2122

2223
### Performance

packages/jest-runner/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ export default class TestRunner {
273273
chalk.yellow(
274274
'A worker process has failed to exit gracefully and has been force exited. ' +
275275
'This is likely caused by tests leaking due to improper teardown. ' +
276-
'Try running with --detectOpenHandles to find leaks.',
276+
'Try running with --detectOpenHandles to find leaks. ' +
277+
'Active timers can also cause this, ensure that .unref() was called on them.',
277278
),
278279
);
279280
}

0 commit comments

Comments
 (0)