0.0.1 • Published 1 year ago

@dword-design/mocha-spec-reporter-with-file-names v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

mocha-spec-reporter-with-file-names

Modified version of the Mocha default built-in spec reporter but with file names included in the output.

Here's what the output looks like:

example output image

Usage

Config

// .mocharc.js

const SpecReporterWithFileNames = require('mocha-spec-reporter-with-file-names');

module.exports = {
    reporter: SpecReporterWithFileNames.pathToThisReporter,
};

Mocha config file docs.

CLI

npx mocha --reporter './node_modules/mocha-spec-reporter-with-file-names'

Mocha --reporter docs.