jest-fixed-default-reporter
v2.0.1
Published
Tiny wrapper around jest DefaultReporter that prints success messages to stdout
Downloads
5,163
Readme
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