New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

jest-doctor

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-doctor

Custom Jest environment that detects async leaks between tests, enforces test isolation, and prevents flaky failures in CI.

latest
Source
npmnpm
Version
2.1.1
Version published
Maintainers
1
Created
Source

jest-doctor

main codecov npm version License

jest-doctor is a custom Jest environment that detects async leaks within tests and fails flaky tests deterministically.

Usage

Out-of-the-box jest-doctor supports node and jsdom environments. Add one of the environments to your Jest config:

export default {
  testEnvironment: 'jest-doctor/env/node',
  // optional
  reporters: ['default', 'jest-doctor/reporter'],
};

Run your tests as usual and jest-doctor will report leaks such as unresolved promises or timers.

Full documentation, configuration and more:

👉 https://stephan-dum.github.io/jest-doctor/

If jest-doctor helped you eliminate flaky tests, consider ⭐ starring the repo.

jest-doctor mascot

Keywords

jest

FAQs

Package last updated on 12 Apr 2026

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