Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@currents/jest

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@currents/jest

Currents reporter for Jest

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@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.

Keywords

FAQs

Package last updated on 03 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc