@geoblink/jest-summary-reporter

1.0.0 • Public • Published

Summary reporter for Jest

Simple reporter to summarize the failing tests at the END of a test run. Without this, you may be scrolling through pages of results to figure out which files to edit.

See the issue that inspired this.

Configuration

By default it prints the detailed failure messages and the summary of the failed tests.

Add @geoblink/jest-summary-reporter in addition to default reporters that Jest provides:

{
  "reporters": [
    "default",
    "@geoblink/jest-summary-reporter"
  ]
}

If you want to see passing/pending tests as well:

{
  "reporters": [
    "default",
    ["@geoblink/jest-summary-reporter", {"failuresOnly": false}]
  ]
}

If you want to omit the detailed failure messages:

{
  "reporters": [
    "default",
    ["@geoblink/jest-summary-reporter", {"shouldPrintFailureMessages": false}]
  ]
}

NB: This module is not complete enough to be useful as the only reporter.

See also: Jest docs for custom reporter configuration

Readme

Keywords

none

Package Sidebar

Install

npm i @geoblink/jest-summary-reporter

Weekly Downloads

534

Version

1.0.0

License

MIT

Unpacked Size

135 kB

Total Files

13

Last publish

Collaborators

  • geoblink