Skip to content

AleG94/mocha-suppress-logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Suppress console output of successful mocha tests

Resources

License

Stars

Watchers

Forks

Packages

No packages published