VOOZH about

URL: https://mochajs.org/

⇱ Mocha | Classic, reliable, trusted. β˜•


Skip to content

Mocha

Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing straightforward and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases.

Get Started

Configuration Reference

Use Mocha at work? Ask your manager or marketing team if they’d help support our project. Your company’s logo will also be displayed on npmjs.com and our GitHub repository.

Find Mocha helpful? Become a backer and support Mocha with a monthly donation.

πŸ‘ HTTP Toolkit
πŸ‘ WebdriverIO
πŸ‘ Automatio AI
πŸ‘ Third Iron
πŸ‘ Damon Overboe
πŸ‘ DontPayFull
πŸ‘ Loc8NearMe
πŸ‘ Dan Aprahamian
πŸ‘ ZenRows
πŸ‘ Mariusz Nowak
πŸ‘ Software Development UK
πŸ‘ Mobilemall.pk
πŸ‘ Immigration.sg
πŸ‘ Tommi Aaltonen
πŸ‘ VPSDime
πŸ‘ Owen Buckley
πŸ‘ LivingFeeds
πŸ‘ Game Rules
πŸ‘ GraphCommerce
πŸ‘ Crosslist
πŸ‘ Scrapfly
πŸ‘ Gavin Mogan
πŸ‘ Matter
πŸ‘ Versl
πŸ‘ G7R
πŸ‘ Softermii
πŸ‘ Kevin Lamping
πŸ‘ Fiber Optic Cable
πŸ‘ Songsterr.com
πŸ‘ formation.tech
πŸ‘ RxDB
πŸ‘ Free Template
πŸ‘ Quarry Rents
πŸ‘ CrawlJobs
πŸ‘ buzzvoice.com
πŸ‘ Chudovo
πŸ‘ 7calendar.com
πŸ‘ Sister Sites
πŸ‘ Reach Digital
πŸ‘ Theme Divi
πŸ‘ VendSoft
πŸ‘ BestETF
πŸ‘ IT Flashcards
πŸ‘ Rebrowser.net
πŸ‘ Roundproxies
πŸ‘ HypeProxies
πŸ‘ Piloterr
πŸ‘ Subscord
πŸ‘ Sublyna
πŸ‘ Retailed
πŸ‘ ZIND
πŸ‘ Capturekit
πŸ‘ HuntAPI
πŸ‘ AllDevBlogs
πŸ‘ Discount Agent
πŸ‘ TWT S
πŸ‘ Network Tools
πŸ‘ Time.so
πŸ‘ OhMyFacts
πŸ‘ Feetpedia
πŸ‘ Calculators
πŸ‘ Time Now
πŸ‘ Million.tools
πŸ‘ Spin the Wheel
πŸ‘ Prothots
πŸ‘ ViewSnapStories
πŸ‘ Tikster
πŸ‘ Jamdesk
πŸ‘ Love You
πŸ‘ Local Citation Service
πŸ‘ StoryLooker
πŸ‘ MedyaMagaza
πŸ‘ Netrouting
πŸ‘ ListCrawler
πŸ‘ Instant Famous
πŸ‘ elfontario.ca
πŸ‘ UAParser.js
πŸ‘ RedReply
πŸ‘ Tik Ninja

In addition to chatting with us on our Discord, for additional information such as using spies, mocking, and shared behaviours be sure to check out the Mocha Wiki on GitHub. For a running example of Mocha, view example/tests.html.

For the old docs website, see: legacy.mochajs.org.

For the JavaScript API, view the API documentation or the source.