jest-silent-reporter
A silent reporter for Jest
Last updated 15 days ago by rickhanlonii .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jest-silent-reporter 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.2.1                                ...           latest (15 days ago)

10 Versions

  • 0.2.1                                ...           15 days ago
  • 0.2.0                                ...           15 days ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 8
This Month 124
Last Day 0
Last Week 6
Last Month 65
Dependencies (2)
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |