Mocha
Hello!Welcome to the newly revamped mochajs.org!
If you see any bugs or typos, pleasefile a docs issue on mochajs/mocha.Thanks!🤎
For the old docs website, see:legacy.mochajs.org.
Mocha is a feature-rich JavaScript test framework running onNode.js and in the browser, making asynchronous testingstraightforward andfun.Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases.
Get StartedConfiguration Reference
Sponsors
Section titled “Sponsors”Use Mocha at work?Ask your manager or marketing team if they’d helpsupport our project.Your company’s logo will also be displayed onnpmjs.com and ourGitHub repository.
Backers
Section titled “Backers”Find Mocha helpful?Become abacker and support Mocha with a monthly donation.
More Information
Section titled “More Information”In addition to chatting with us onour Discord, for additional information such as usingspies, mocking, and shared behaviours be sure to check out theMocha Wiki on GitHub.For a running example of Mocha, viewexample/tests.html.
For the JavaScript API, view theAPI documentation or thesource.



















































