Published On Nov. 27th 2017

Testing Vue: Cleaner Asynchronous Mocha Tests

Episode 10 Run Time 8:45


In the previous episode, we created a useful assertOnNextTick() helper function to trigger and catch an assertion after Vue has performed its next "tick." However, Mocha allows for using asynchronous functions instead. Let's review that approach, and how it can drastically clean up and simplify our tests.

View the source code for this episode on GitHub.