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

jest-slow-test-reporter

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-slow-test-reporter

Reports the slowest tests in your jest suite.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Slow test reporter for jest

No dependencies, no interactive shell needed. Prints out the slowest 10 tests in your app. Can also print warnings when a test exceeds X ms.

Installation

You may install this package as a development dependency:

npm install --save-dev jest-slow-test-reporter
yarn add --dev jest-slow-test-reporter

Configuration

Configure Jest to use the reporter.

For example, create a jest.config.js file containing:

module.exports = {
  verbose: false,
  reporters: [
    ['jest-slow-test-reporter', {"numTests": 8, "warnOnSlowerThan": 300, "color": true}]
  ]
};

numTests controls how many slow tests to print. warnOnSlowerThan will warn when a test exceeds this time in milliseconds. color will make the warnOnSlowerThan warning messages print in red

Keywords

FAQs

Package last updated on 18 Nov 2017

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