You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

jest-summarizing-reporter

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-summarizing-reporter

Custom reporter for jest, that only prints test result summary.

1.1.4
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Jest summarizing reporter

Custom reporter for Jest that only prints the summary of the test run. With diffs option, also prints the default error messages aka diffs before the summary.

jestsummaryreporternodiffssmall

Personally I think this behaviour should not require a custom reporter, and the level of similarity between this and the default output should be proof enough.

Tested only on my windows machine with a simple pet project.

If you have any questions or suggestions contact me by e-mail.

It came to my attention (a little too late) that at least 3 packages with same functionality already exist npm search results for jest summary reporters

So if you have found this repo but it is not working out for you for some reason, check out above link.

Installation

npm i -D jest-summarizing-reporter

Usage

CLI:

jest --reporters jest-summarizing-reporter

Jest Config:

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

Options

diffs

If enabled prints jests default error explanations before the summary

{
  "reporters": [
    ["jest-summarizing-reporter", {diffs: true}]
  ]
}

Output examples

Default output:

jestsummaryreporternodiffs

With diffs option:

jestsummaryreporter

When all tests pass:

jestsummaryreportersuccess

License

Unlicense

Keywords

jest

FAQs

Package last updated on 01 Mar 2020

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.