@jest-performance-reporter/core

2.1.3 • Public • Published

Overview

🧐 Identify slow tests during development

📚 Create json or csv report including the test execution times

yarn add -DE @jest-performance-reporter/core

Example test run

Setup

Configure jest to use this reporter via the jest section in the package.json or your jest config.

{
  "reporters": [
    "default",
    [
      "@jest-performance-reporter/core",
      {
        "errorAfterMs": 1000,
        "warnAfterMs": 500,
        "logLevel": "warn",
        "maxItems": 5,
        "jsonReportPath": "performance-report.json",
        "csvReportPath": "performance-report.csv"
      }
    ]
  ]
}

The "default"-reporter creates the default jest output. If you don't need it, of course you can remove it.

Readme

Keywords

none

Package Sidebar

Install

npm i @jest-performance-reporter/core

Weekly Downloads

18,185

Version

2.1.3

License

MIT

Unpacked Size

9.78 kB

Total Files

10

Last publish

Collaborators

  • sholzmayer