Socket
Socket
Sign inDemoInstall

jest-fixed-default-reporter

Package Overview
Dependencies
274
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jest-fixed-default-reporter

Tiny wrapper around jest DefaultReporter that prints success messages to stdout


Version published
Weekly downloads
1.1K
increased by9.96%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 15 May 2021

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc