1.0.2 • Published 3 months ago

@currents/jest v1.0.2

Weekly downloads
-
License
GPL-3.0-or-later
Repository
-
Last release
3 months ago

@currents/jest

A Jest reporter for Currents - a cloud platform for debugging, troubleshooting and analysing CI test results:

  • Save jest test results to a cloud
  • Fetch git information and associated with CI builds
  • Integrate with your workflow - Slack, GitHub or GitLab PR comments and status checks
  • Flakiness, failure rate, duration and much more aggregative metrics
  • Errors and root cause tracker
  • Automated reports with test suite health metrics
  • Get access to test results via REST API and HTTP webhooks

Setup

npm install @currents/jest --save-dev

Usage

Add the reporter to Jest configuration:

import type { Config } from "jest";

const config: Config = {
  reporters: ["default", ["@currents/jest"]],
};

export default config;

or set the --reporters option when running the jest

npx jest --reporters=@currents/jest

The reporter saves the test results in a folder named using the pattern .currents/[timestamp]-[uuidv4()] in the root directory. We recomment to add .currents* to your .gitignore file.

Configuration

PropertyTypeDescriptionEnvironment variableDefault
reportDirstringTest results directoryCURRENTS_REPORT_DIR.currents/[timestamp]-[uuidv4]

Troubleshooting

Set DEBUG=currents-jest before running the tests to obtain detailed information about the reporter execution process.

1.0.2

3 months ago

1.0.1

4 months ago

1.0.0

4 months ago

1.0.0-beta.4

5 months ago

1.0.0-beta.5

4 months ago

1.0.0-beta.1

5 months ago

0.0.3

6 months ago

0.0.5

6 months ago

0.0.4

6 months ago

0.0.7

6 months ago

0.0.6

6 months ago

0.0.2

7 months ago

0.0.1

7 months ago