Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@es-joy/json-file-reporter

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@es-joy/json-file-reporter

JSON file reporter for Mocha

latest
Source
npmnpm
Version
1.5.0
Version published
Maintainers
2
Created
Source

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"
  ]
}

Keywords

mocha

FAQs

Package last updated on 13 Jun 2025

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