2.0.1 • Published 3 years ago

jest-fixed-default-reporter v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Fixed jest DefaultReporter

By default, Jest is using stderr as output https://github.com/facebook/jest/issues/5064

This is a tiny wrapper around jest default reporters (DefaultReporter, VerboseReporter, SummaryReporter) that prints success messages to stdout and errors to stderr.

See how inner tests print results.

Use

npm install --save-dev jest-fixed-default-reporter
jest --reporters=jest-fixed-default-reporter/DefaultReporter --reporters=jest-fixed-default-reporter/SummaryReporter

or

yarn add --save-dev jest-fixed-default-reporter

or

jest.config.js:
{
  "reporters": [
    // "jest-fixed-default-reporter/VerboseReporter",
    "jest-fixed-default-reporter/DefaultReporter",
    "jest-fixed-default-reporter/SummaryReporter"
  ]
}

Inspiration

jest-standard-reporter seemed like way too much code to maintain https://github.com/chrisgalvan/jest-standard-reporter

2.0.1

3 years ago

2.0.0

3 years ago