Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
jest-leak-detector
Advanced tools
Changelog
29.4.2
[@jest/core]
Instrument significant lifecycle events with performance.mark()
(#13859)[expect, @jest/expect]
Provide type of actual
as a generic argument to Matchers
to allow better-typed extensions (#13848)[jest-circus]
Added explicit mention of test failing because done()
is not being called in error message (#13847)[jest-runtime]
Handle CJS re-exports of node core modules from ESM (#13856)[jest-transform]
Downgrade write-file-atomic
to v4 (#13853)[jest-worker]
Ignore IPC messages not intended for Jest (#13543)Readme
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.
(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
Module for verifying whether an object has been garbage collected or not.
The npm package jest-leak-detector receives a total of 19,288,304 weekly downloads. As such, jest-leak-detector popularity was classified as popular.
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.
Did you know?
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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.