</>PackageGraphPackageGraph

jest-leak-detector

npmv30.5.1TypeScript

Module for verifying whether an object has been garbage collected or not.

Safe to adopt

Yes — jest-leak-detector scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 9 days ago. 18 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 9 days ago. 18 releases in the last 2 years.

  • BWeight: grade B, Good.

    Pulls in 7 transitive packages, about 103 KB installed (at least — some of the tree is still being crawled).

  • ASupply chain: grade A, Excellent.

    No install scripts, 5 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding jest-leak-detector to a project.

2
Direct dependencies

Runtime packages this one declares itself.

7
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

103 KB
Install size

Unpacked size of this package plus its entire runtime tree.

3
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

MIT

Every license you inherit by installing jest-leak-detector, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the jest-leak-detector README.

javascriptFull README ↗
(async function () {
  let reference = {};
  let isLeaking;

  const detector = new LeakDetector(reference, {
    shouldGenerateV8HeapSnapshot: true,
  });

  // Reference is held in memory.
  isLeaking = await detector.isLeaking();
  console.log(isLeaking); // true

  // We destroy the only reference to the object.
  reference = null;
Example truncated — see the full README.

Dependencies

Declared by jest-leak-detector v30.5.1. Runtime dependencies are installed with the package; dev dependencies are not.

Used by

Popular packages that depend on jest-leak-detector.

Relationship graph

Dependencies (left) and dependents (right) of jest-leak-detector.

Frequently installed together

Release history

18 releases in the last two years, typically about 9 days apart.

Recent versions of jest-leak-detector
VersionPublishedSizeLicense
30.5.1latest9 days ago6.8 KBMIT
30.5.013 days ago6.8 KBMIT
30.4.14 months ago6.8 KBMIT
30.4.04 months ago6.8 KBMIT
30.3.06 months ago6.7 KBMIT
30.2.011 months ago7.2 KBMIT
30.1.01 year ago7.2 KBMIT
30.0.51 year ago6.8 KBMIT
30.0.21 year ago6.3 KBMIT
30.0.11 year ago6.3 KBMIT
30.0.01 year ago6.3 KBMIT
30.0.0-rc.11 year ago6.3 KBMIT
30.0.0-beta.81 year ago6.3 KBMIT
30.0.0-beta.71 year ago6.3 KBMIT
30.0.0-beta.61 year ago6.3 KBMIT

Overview

jest-leak-detector is an npm package that module for verifying whether an object has been garbage collected or not. It has 2 known dependents in the graph. The latest version is 30.5.1, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need module for verifying whether an object has been garbage collected or not and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).
  • Lean dependency tree (3 direct dependencies).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use jest-leak-detector?

Yes — jest-leak-detector scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 9 days ago. 18 releases in the last 2 years.

How do I install jest-leak-detector?

Run `npm install jest-leak-detector` to add jest-leak-detector to your npm project.

How many dependencies does jest-leak-detector have?

jest-leak-detector declares 3 direct dependencies and pulls in 7 packages in total once its runtime tree is resolved totalling about 103 KB on disk.

What license is jest-leak-detector released under?

jest-leak-detector is distributed under the MIT license.

How popular is jest-leak-detector?

npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on jest-leak-detector.

Is jest-leak-detector still maintained?

The most recent release of jest-leak-detector (v30.5.1) was published 9 days ago.

Does jest-leak-detector run install scripts?

No. jest-leak-detector does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.