fake_async
fake_async copied to clipboard
Use fakeAsync with asynchronous generator (yield*)
Hi!
I'm having trouble with using fakeAsync with code that depends on asynchronous generator. Possibly it's something that I don't understand about async*/yield* that causes this, but I'd like to know what's happening, and if perhaps fakeAsync can work with code depending on it.
See https://gist.github.com/kpsroka/c6f58ef942fb413883942baff2f4de57 for an example.
Edit: I've updated the example with several other cases where fakeAsync does not do the same work as in the straightforward case, which also hints and my lack of understanding of limitations of the tool.