error: Promise resolution is still pending but the event loop has already resolved"
The test partially runs but it seems to reach a point where it calls setTimeout and then just exits.
If I remove the reference to fake time then the test runs as expected, it just takes a little more time.
Does anyone have any experience with using FakeTime in an asynchronous test? The function its getting hung up on is the std library retryretry function.
Test spies are function stand-ins that are used to assert if a function's internal behavior matches expectations. Test spies on methods keep the original behavior but allow you to test how the method
No replies yet
Join the Discord to continue the conversation
D
Deno
Chat about Deno, a modern runtime for JavaScript and TypeScript.