domain | mochajs.org |
summary | When a worker receives a test file to run, they create a new Mocha instance for the single test file. The worker repeats steps 8 and 10 from above, with the exception that results are held in memory buffer instead of being reported directly. Upon completion of the test file, buffered results are returned to the main process, which then provides them to the user-specified reporter (by default). The worker makes itself available to the pool, which assigns another test file if any remain. Mocha prints a final summary and runs global teardown fixtures if present. Rules for behavior include allowing uncaught errors, requiring tests to use a callback or return a Promise, aborting bail after the first failure, and checking for global variable leaks. Other options include delaying execution of the root suite, reporting tests without executing them, failing test runs with no tests, running tests in serial or parallel, specifying slow test threshold in milliseconds, specifying timeout threshold in milliseconds, setting user interface strings, and allowing retries on failed tests. |
title | Mocha - the fun, simple, flexible JavaScript test framework |
description | Mocha - the fun, simple, flexible JavaScript test framework |
keywords | test, mocha, tests, function, will, hooks, file, root, files, reporter, suite, parallel, hook, default, using, return, option |
upstreams |
11ty.dev |
downstreams |
nodejs.org, github.com, opencollective.com, npmjs.com, localizejs.com, route4me.com, httptoolkit.com, thirdiron.com, dontpayfull.com, 6figr.com, webdriver.io, immigration.sg, tommiaaltonen.fi, mobilemall.pk, vpsdime.com, gavinmogan.com, webscraping.ai, livingfeeds.com, vse-vorota.kiev.ua, popularwow.com, gamerules.com, metabolize.dev, adaptable.io, badassjs.com, crosslist.com, scrapfly.io, matterapp.com, versl.com, formation.tech, rxdb.info, quarryrents.com, technologypep.com, smmlite.com, 7calendar.com, lightnode.com, wptheme.fr, petinya.com, exndev.com, milanovetraio.it, rebrowser.net, creditzaim.com.ua, qwertybro.com, krakenstream.com, lpotouraine.fr, dreamtechstore.com, js.org, mozilla.org, qunitjs.com, wikipedia.org, fishshell.com, jetbrains.com, wallabyjs.com, matomo.org, creativecommons.org, openjsf.org, linuxfoundation.org, netlify.com |
nslookup | A 35.157.26.135, A 63.176.8.218 |
created | 2024-02-26 |
updated | 2025-09-02 |
summarized | 2025-09-02 |
|
|