Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mochajs/json-file-reporter

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mochajs/json-file-reporter

JSON file reporter for Mocha

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.8K
decreased by-66.66%
Maintainers
1
Weekly downloads
 
Created
Source

npm version JavaScript Style Guide

@mochajs/json-file-reporter

JSON file reporter for Mocha

Installation

$ npm i -D @mochajs/json-file-reporter

Usage

Use --reporter in your test command.

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

Or, add reporter to your configuration file.

{
  "reporter": "@mochajs/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 @mochajs/json-file-reporter --reporter-options output=filename.json"
  }
}

Or, add reporter-option to your configuration file.

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

Keywords

FAQs

Package last updated on 16 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc