1.0.4 • Published 12 months ago

jest-ci-spec-reporter v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Jest spec reporter with CI-friendly output

npm version build status size license

A custom reporter for Jest which produces a clean and readable output when viewing results in CI build logs.

Installation

You should install this package as a development dependency:

npm install --save-dev jest-ci-spec-reporter

Configuration

If you do not have an exiting Jest configuration, create a jest.config.js file containing:

module.exports = {
  reporters: ["jest-ci-spec-reporter"]
};

Otherwise, simply add jest-ci-spec-reporter to your existing array of Jest reporters.

See the Jest documentation for more information about using custom reporters.

Sample Output

The output of the reporter is searchable in a CI log allowing faster navigation to errors:

Determining test suites to run...
Found 1 test suites.

    [PASS] JestCiSpecReporter > should implement onRunComplete (1ms)
    [PASS] JestCiSpecReporter > should implement onRunStart (0ms)
    [PASS] JestCiSpecReporter > should implement onTestResult (1ms)
    [PASS] JestCiSpecReporter > should implement getLastError (0ms)

Executed 4 of 4 (skipped 0) SUCCESS (0.856 secs)
TOTAL: 4 SUCCESS
1.0.4

12 months ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago