1.0.3 • Published 11 months ago
@reporters/mocha v1.0.3
Mocha reporters for node:test
Use this custom reporter to use mocha reporters with node:test.
Both built-in and custom mocha reporters such as mochawesome are supported.
Installation
npm install --save-dev @reporters/mochaor
yarn add --dev @reporters/mochaUsage
Specify the desired mocha reporter inside the mocha configuration file, e.g. .mocharc.js:
module.exports = {
reporter: 'nyan'
}Then run the tests with node:test:
node --test --test-reporter=@reporters/mocha