Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

outline-insurance/jest-friendly-reporter

 
 

Repository files navigation

npm npm bundle size downloads mit keywords

Jest Standard Reporter

Jest reporter that uses stdout for messages and stderr for errors.

Installation

Using npm:

npm install --save-dev jest-standard-reporter

Using yarn:

yarn add --dev jest-standard-reporter

Usage

Jest CLI:

jest --reporters=jest-standard-reporter

Jest config:

{
  "reporters": ["jest-standard-reporter"]
}

Supports the following Jest configurations:

Inspiration

Jest uses stderr to print the results of the tests (as opposed to stdout; see issue #5064). Many CI tools mark any output coming from stderr as a failure, making builds to fail even when the tests pass (false positive).

This reporter uses stdout to print messages and only uses stderr when an error is thrown.

If you chose to, you could override this behavior using the useStderr flag.

License

MIT

About

Jest reporter that uses stdout for messages and stderr for errors

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%