FakeTime seems to break async tests
I am attempting to use FakeTime similarly to in the Faking time example of https://deno.land/manual@v1.35.1/basics/testing/mocking
But whenever I run the tests it responds with:
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
But whenever I run the tests it responds with:
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
retry function.Deno
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
internal behavior matches expectations. Test spies on methods keep the original
behavior but allow you to test how the method

