0.0.1 • Published 12 days ago

@currents/jest v0.0.1

Weekly downloads
-
License
GPL-3.0-or-later
Repository
-
Last release
12 days ago

@currents/jest

Jest reporter for Currents - a cloud dashboard for debugging, troubleshooting and analysing parallel CI tests.

  • Saves jest test results to a cloud
  • Fetches git information and associated with CI builds
  • Integrates with your workflow - Slack, GitHub or GitLabPR comments and status checks
  • Flakiness, failure rate, duration and much more aggregative metrics
  • Common errors tracker
  • Automated reports with test suite health metrics
  • REST API and HTTP Webhooks

Install

npm install -D @currents/jest

Usage

Add the reporter to the Jest configuration:

import type { Config } from "jest";

const config: Config = {
  reporters: [
    "default",
    [
      "@currents/jest",
      {
        ciBuildId: process.env.CURRENTS_CI_BUILD_ID,
        recordKey: process.env.CURRENTS_RECORD_KEY,
        projectId: process.env.CURRENTS_PROJECT_ID,
      },
    ],
  ],
};

export default config;

or set the --reporters option when running the Jest CLI

CURRENTS_PROJECT_ID=xxx CURRENTS_RECORD_KEY=zzz CURRENTS_CI_BUILD_ID=yyy npx jest --reporters=@currents/jest