How to introduce mocks at tests with async?

I just encountered the problem of introducing tests with things like mox when using async. There is any way to have mocks at the tests and have async at the same time? I found a few libraries with very few starts and activity, but I’m looking for a more canonical suggestion.

Async tests is where being explicit starts to shine. Instead of trying to change behaviour through global side effects build the system in a way that you can change behaviour through the inputs into the code under test.

1 Like

Mox is explicitly designed to work async. What have you tried so far?