Socket
Book a DemoInstallSign in
Socket

jest-silent-reporter

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-silent-reporter

A silent reporter for Jest

0.6.0
latest
Source
npmnpm
Version published
Weekly downloads
189K
-12.83%
Maintainers
1
Weekly downloads
 
Created
Source

Jest Silent Reporter

Custom reporter for Jest that only prints failed tests.

Installation

Using npm:

$ npm i --save-dev jest-silent-reporter

Using yarn:

$ yarn add --dev jest-silent-reporter

Usage

Jest CLI:

jest --reporters=jest-silent-reporter

Jest config:

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

Options

useDots: boolean

For large test suites, jest-silent-reporter can cause CI to fail due to having no output for some configured amount of time. Using the useDots option will output dots for each test file, similar to a dot reporter.

{
  "reporters": [["jest-silent-reporter", { "useDots": true }]]
}

Note: this config is also available as an environment variable JEST_SILENT_REPORTER_DOTS=true.

showWarnings: boolean

Warnings are supressed by default, use showWarnings to log them.

{
  "reporters": [["jest-silent-reporter", { "showWarnings": true }]]
}

Note: this config is also available as an environment variable JEST_SILENT_REPORTER_SHOW_WARNINGS=true.

showPaths: boolean

Sometimes it might come in handy to display the test suites' paths (i.e. when running tests in a terminal inside IDE for quicker file navigation).

{
  "reporters": [["jest-silent-reporter", { "showPaths": true }]]
}

Note: this config is also available as an environment variable JEST_SILENT_REPORTER_SHOW_PATHS=true.

Screenshots

All tests passed

Screenshot: all tests passed

Tests failed

Screenshot: some tests failed

Licence

MIT

FAQs

Package last updated on 22 May 2024

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.