@dword-design/mocha-spec-reporter-with-file-names
Version:
Mocha default spec reporter with file names.
32 lines (19 loc) • 688 B
Markdown
# 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:

# Usage
## Config
```Javascript
// .mocharc.js
const SpecReporterWithFileNames = require('mocha-spec-reporter-with-file-names');
module.exports = {
reporter: SpecReporterWithFileNames.pathToThisReporter,
};
```
[Mocha config file docs.](https://mochajs.org/#configuring-mocha-nodejs)
## CLI
```bash
npx mocha --reporter './node_modules/mocha-spec-reporter-with-file-names'
```
[Mocha `--reporter` docs.](https://mochajs.org/#-reporter-name-r-name)