Skip to content

Commit

Permalink
Updates nextFrame tests to use .stable() instead.
Browse files Browse the repository at this point in the history
`stable` is less brittle to changes in scheduler timing and should generally be preferred for testing.

`ui-scheduler.test.ts` was left on `nextFrame` because that is critical to the actual timing being tested. Using `stable` there would not properly verify that the action was called at the correct time.
  • Loading branch information
dgp1130 committed Dec 28, 2023
1 parent 140be04 commit e60bec2
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 72 deletions.
Loading

0 comments on commit e60bec2

Please sign in to comment.