1 min readApr 2, 2020
Good point about using this for the unit tests.
that the first version of the test with the subscribe is incorrect, as you’re not using async/await or the done callback of jest. But that could be a good reason for using your proposed approach instead ;-)