Mocha reads options from .mocharc.json / .mocharc.yml / .mocharc.cjs or the "mocha" key in package.json. Option Example Meaning spec "test//.test.mjs" which files to run require ["test/hooks.mjs"] root hooks / setup timeout, slow 5000, 100 timing defaults reporter spec, dot, min, json, mocha-junit-reporter output format parallel, jobs true, 4 run files in worker processes forbid-only, bail true CI safety, stop after first failure watch, watch-files rerun on change Coverage: npx c8 mocha (native V8 coverage, works with ESM) or nyc. TypeScript: --import=tsx (or ts-node/esm). Parallel mode requires tests to be isolated — no shared global state across files, and .only is not supported.