Registry / testing / jest-slow-test-highlighter

jest-slow-test-highlighter

JSON →
library1.0.2jsnpmunverified

A custom Jest reporter that identifies and reports on the slowest running tests in your test suite. Current stable version is 1.0.2. Release cadence is low, single maintainer. Key differentiator: simple configuration with maxTests and slowSeconds options, integrates seamlessly as a Jest reporter. No major updates since initial release.

npm install jest-slow-test-highlighter
INSTALL
IMPORT
SIG · JEST-SLOW-TEST-HIG
J
jest-slow-test-highlighter
testingjavascriptv1.0.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

jest-slow-test-highlighter
Added to jest config: reporters: ['default', 'jest-slow-test-highlighter']
Using require() in test file: const reporter = require('jest-slow-test-highlighter')
This is a Jest reporter, not imported in test files. Add to jest.config.js reporters array.

Installs the package and configures Jest to use the reporter with custom settings.

npm install jest-slow-test-highlighter --save-dev // jest.config.js module.exports = { reporters: [ 'default', ['jest-slow-test-highlighter', { maxTests: 5, slowSeconds: 2 }] ] };
Debug
Known issues
gotchaRequires Jest version ^30.1.3; incompatible with older Jest versions.
fix
Upgrade Jest to ^30.1.3 or later.
affects: 1.0.0 - 1.0.2
Errors
Common errors & fixes
TypeError: reporters[1] is not a function or string
Misconfigured reporters array; reporter is not found or wrong format.
fix
Ensure reporters array uses correct string or tuple format: ['jest-slow-test-highlighter', {...}]
Upgrade
Version history
1.0.2latest on npm
Audit
Dependencies
jestrequiredPeer dependency; version ^30.1.3 required
Agent activity
4 hits · last 30 days
node
4
Resources
jest-slow-test-highlighter — npm install jest-slow-test-highlighter · libregistry