1.0.0 • Published 1 year ago

@geoblink/jest-summary-reporter v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

1.0.0

1 year ago