Landry Norris
02/01/2023, 10:41 PMAlex Vanyo
02/01/2023, 10:46 PMLandry Norris
02/01/2023, 10:54 PMAlex Vanyo
02/01/2023, 11:08 PMwithInfiniteAnimationFrameNanos
, which will change its behavior during tests.
Although here it sounds like there’s more core logic that won’t end.
I think your main alternative to messing with autoadvance is to have a way to make the test more controllable, instead of directly dependent on time.
Maybe in tests, you could replace the controller or “thing” that outputs a signal every 30 seconds with a test version that you could send out a signal manually with.
So then in your tests, it would be something like testTimer.sendTick
, and then you wouldn’t have any time dependency in a test.