-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As noted in 7de53a5, this causes one of the tests to break; the runMicrotasks() works around this. It makes the countTimers() assertion partially pointless, but I can live with that (and I think it still asserts something, just not microtasks anymore). Note that the runMicrotasks() can’t be part of the test function itself for two reasons: the job is (somehow) only added after the test returns (it doesn’t exist at the end of the test function yet – you can see that by console.log()ing clock.jobs in both places), and the failure isn’t specific to any one test function (if you .skip() one, the failure shifts to the next function). I think the missing `await`s on `tickAsync()` were always wrong, but didn’t cause problems (the problem here also turned out to be unrelated). Let’s add them anyways.
- Loading branch information
1 parent
0a1e913
commit 7772f8f
Showing
4 changed files
with
25 additions
and
15 deletions.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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