Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

mocha-suppress-logs

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-suppress-logs

Suppress console output of successful mocha tests.

latest
Source
npmnpm
Version
0.6.0
Version published
Weekly downloads
121K
31.26%
Maintainers
1
Weekly downloads
 
Created
Source

Mocha Suppress Logs

CircleCI NPM Version Coverage Status License Downloads

Suppress console output of successful mocha tests.

Ideal if you want to keep your test's report clean while still being able to debug the output of failed tests.

Note: For mocha version 7 or earlier, you must use version 0.2.0 of this package.

Requirements

  • mocha (8.0.0 or higher)

Installation

npm install --save-dev mocha-suppress-logs

Usage

Simply require mocha-suppress-logs when running mocha:

mocha --require mocha-suppress-logs

Or put it in your .mocharc to make it default behavior:

{
    "require": "mocha-suppress-logs"
}

Keywords

mocha

FAQs

Package last updated on 24 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