Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

mocha-spec-reporter-with-file-names

electrovir894MIT0.0.3TypeScript support: included

Mocha default spec reporter with file names.

mocha, file name, spec, file, name, reporter

readme

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.