Quick
Dev
Guide
Home
›
Mocha JS Testing
Asynchronous Testing — Mocha JS Testing
Mocha makes it easy to test async code using promises or async/await.
Mocha JS Testing Topics
Introduction to Mocha
Setup & Installation
Writing Your First Test
Assertions with Chai
Hooks: before, after, beforeEach, afterEach
Asynchronous Testing
Timeouts, Retries & Slow Tests
Spies, Stubs & Fake Timers with Sinon
Testing HTTP APIs
Exclusive, Pending & Dynamic Tests
Configuration, Reporters & Coverage
Best Practices