This repository has been archived by the owner on Dec 31, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: expose function to clear timers and allow immediate test exit (#329
) * fix: expose function to clear timers and allow immediate test exit Exposes `clearTimers` function which clears up background 'aborted render' reactions immediately. Some test frameworks such as Jest prevent exit unless all such timers are cleared. For: mobxjs/mobx#2528 * Update .changeset/loud-starfishes-shave.md Co-authored-by: Daniel K <FredyC@users.noreply.github.com>
- Loading branch information
Showing
4 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"mobx-react-lite": minor | ||
--- | ||
|
||
expose `clearTimers` function to tidy up background timers, allowing test frameworks such as Jest to exit immediately |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters