@es-joy/json-file-reporter

    1.4.0 • Public • Published

    npm version JavaScript Style Guide

    @es-joy/json-file-reporter

    JSON file reporter for Mocha

    A fork of @mochajs/json-file-reporter.

    Installation

    $ npm i -D @es-joy/json-file-reporter

    Usage

    Use --reporter in your test command.

    {
      "scripts": {
        "test": "mocha --reporter @es-joy/json-file-reporter"
      }
    }

    Or, add reporter to your configuration file.

    {
      "reporter": "@es-joy/json-file-reporter"
    }

    Options

    output

    By default, it will output to report.json. To write to other file, use --reporter-options in your test command.

    {
      "scripts": {
        "test": "mocha --reporter @es-joy/json-file-reporter --reporter-options output=filename.json"
      }
    }

    Or, add reporter-option to your configuration file.

    {
      "reporter": "@es-joy/json-file-reporter",
      "reporter-option": [
        "output=filename.json"
      ]
    }

    Install

    npm i @es-joy/json-file-reporter

    DownloadsWeekly Downloads

    7

    Version

    1.4.0

    License

    MIT

    Unpacked Size

    5.74 kB

    Total Files

    3

    Last publish

    Collaborators

    • voxpelli
    • brettz9