Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

jest-leak-detector

Package Overview
Dependencies
2
Maintainers
5
Versions
150
Issues
File Explorer

Advanced tools

jest-leak-detector

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

    29.3.1latest

Version published
Maintainers
5
Weekly downloads
16,078,613
decreased by-9.46%

Weekly downloads

Changelog

Source

29.3.1

Fixes

  • [jest-config] Do not warn about preset in ProjectConfig (#13583)

Performance

  • [jest-transform] Defer creation of cache directory (#13420)

Readme

Source

jest-leak-detector

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

Internally creates a weak reference to the object, and forces garbage collection to happen. If the reference is gone, it meant no one else was pointing to the object.

Example

(async function () { let reference = {}; let isLeaking; const detector = new LeakDetector(reference); // Reference is held in memory. isLeaking = await detector.isLeaking(); console.log(isLeaking); // true // We destroy the only reference to the object. reference = null; // Reference is gone. isLeaking = await detector.isLeaking(); console.log(isLeaking); // false })();

FAQs

What is jest-leak-detector?

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

Is jest-leak-detector popular?

The npm package jest-leak-detector receives a total of 12,353,332 weekly downloads. As such, jest-leak-detector popularity was classified as popular.

Is jest-leak-detector well maintained?

We found that jest-leak-detector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 5 open source maintainers collaborating on the project.

Last updated on 08 Nov 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc