Kocha (v1.9.1) is a modern, simpler clone of Mocha for JavaScript testing in Node.js. It supports BDD-style test syntax (describe/it/beforeEach/afterEach) without globals, making it lint-friendly. It requires explicit imports from the 'kocha' package. Kocha has no dependencies and uses CommonJS modules. It offers timeout and retries as explicit API calls rather than via 'this'. It is maintained with release cadence as needed. Key differentiators: no globals, no standalone browser mode, no TDD/QUnit interfaces, intentionally simpler than Mocha.
npm install kochaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic BDD test suite with hooks, assertions, and skip using Kocha.
Call timeout(n) and retries(n) directly from require('kocha') at the suite level.Replace xdescribe with describe.skip, xit with it.skip, context with describe, specify with it.
Imports must be added to each test file; tests expecting global Mocha functions will fail.
Run tests using './node_modules/.bin/kocha test.js' or add a script in package.json: 'scripts': { 'test': 'kocha test.js' }.Add 'const { describe, it } = require('kocha')' at the top of your test file.Replace xdescribe with describe.skip.
Call timeout(n) directly from require('kocha') at suite level.Run 'npm install kocha --save-dev' in your project directory.
No dependency data recorded yet.