Skip to content

feat(jest-leak-detector): make GC aggressiveness configurable regarding to V8 heap snapshot generation#15793

Merged
cpojer merged 5 commits intojestjs:mainfrom
hainenber:feat/configurable-v8-heap-snapshot-for-leak-detector
Aug 27, 2025
Merged

feat(jest-leak-detector): make GC aggressiveness configurable regarding to V8 heap snapshot generation#15793
cpojer merged 5 commits intojestjs:mainfrom
hainenber:feat/configurable-v8-heap-snapshot-for-leak-detector

Conversation

@hainenber
Copy link
Contributor

@hainenber hainenber commented Aug 23, 2025

Summary

Closes #15791

Allow making the GC to be less aggressive when detecting leaks can be beneficial as (1) folks might know at hands what are current leaks and whatnot and (2) makes DevExp better overall when engineers have knobs to work out their issues

Test plan

Green CI

Signed-off-by: hainenber <dotronghai96@gmail.com>
@netlify
Copy link

netlify bot commented Aug 23, 2025

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 33786e3
🔍 Latest deploy log https://app.netlify.com/projects/jestjs/deploys/68ae8972f2628d0008b6d6e0
😎 Deploy Preview https://deploy-preview-15793--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@hainenber hainenber changed the title feat(jest-leak-detector): make GC aggressive configurable feat(jest-leak-detector): make GC aggressiveness configurable Aug 23, 2025
@hainenber hainenber changed the title feat(jest-leak-detector): make GC aggressiveness configurable feat(jest-leak-detector): make GC aggressiveness configurable regarding to V8 heap snapshot generation Aug 23, 2025
Signed-off-by: hainenber <dotronghai96@gmail.com>
@pkg-pr-new
Copy link

pkg-pr-new bot commented Aug 23, 2025

Open in StackBlitz

babel-jest

npm i https://pkg.pr.new/babel-jest@15793

babel-plugin-jest-hoist

npm i https://pkg.pr.new/babel-plugin-jest-hoist@15793

babel-preset-jest

npm i https://pkg.pr.new/babel-preset-jest@15793

create-jest

npm i https://pkg.pr.new/create-jest@15793

@jest/diff-sequences

npm i https://pkg.pr.new/@jest/diff-sequences@15793

expect

npm i https://pkg.pr.new/expect@15793

@jest/expect-utils

npm i https://pkg.pr.new/@jest/expect-utils@15793

jest

npm i https://pkg.pr.new/jest@15793

jest-changed-files

npm i https://pkg.pr.new/jest-changed-files@15793

jest-circus

npm i https://pkg.pr.new/jest-circus@15793

jest-cli

npm i https://pkg.pr.new/jest-cli@15793

jest-config

npm i https://pkg.pr.new/jest-config@15793

@jest/console

npm i https://pkg.pr.new/@jest/console@15793

@jest/core

npm i https://pkg.pr.new/@jest/core@15793

@jest/create-cache-key-function

npm i https://pkg.pr.new/@jest/create-cache-key-function@15793

jest-diff

npm i https://pkg.pr.new/jest-diff@15793

jest-docblock

npm i https://pkg.pr.new/jest-docblock@15793

jest-each

npm i https://pkg.pr.new/jest-each@15793

@jest/environment

npm i https://pkg.pr.new/@jest/environment@15793

jest-environment-jsdom

npm i https://pkg.pr.new/jest-environment-jsdom@15793

@jest/environment-jsdom-abstract

npm i https://pkg.pr.new/@jest/environment-jsdom-abstract@15793

jest-environment-node

npm i https://pkg.pr.new/jest-environment-node@15793

@jest/expect

npm i https://pkg.pr.new/@jest/expect@15793

@jest/fake-timers

npm i https://pkg.pr.new/@jest/fake-timers@15793

@jest/get-type

npm i https://pkg.pr.new/@jest/get-type@15793

@jest/globals

npm i https://pkg.pr.new/@jest/globals@15793

jest-haste-map

npm i https://pkg.pr.new/jest-haste-map@15793

jest-jasmine2

npm i https://pkg.pr.new/jest-jasmine2@15793

jest-leak-detector

npm i https://pkg.pr.new/jest-leak-detector@15793

jest-matcher-utils

npm i https://pkg.pr.new/jest-matcher-utils@15793

jest-message-util

npm i https://pkg.pr.new/jest-message-util@15793

jest-mock

npm i https://pkg.pr.new/jest-mock@15793

@jest/pattern

npm i https://pkg.pr.new/@jest/pattern@15793

jest-phabricator

npm i https://pkg.pr.new/jest-phabricator@15793

jest-regex-util

npm i https://pkg.pr.new/jest-regex-util@15793

@jest/reporters

npm i https://pkg.pr.new/@jest/reporters@15793

jest-resolve

npm i https://pkg.pr.new/jest-resolve@15793

jest-resolve-dependencies

npm i https://pkg.pr.new/jest-resolve-dependencies@15793

jest-runner

npm i https://pkg.pr.new/jest-runner@15793

jest-runtime

npm i https://pkg.pr.new/jest-runtime@15793

@jest/schemas

npm i https://pkg.pr.new/@jest/schemas@15793

jest-snapshot

npm i https://pkg.pr.new/jest-snapshot@15793

@jest/snapshot-utils

npm i https://pkg.pr.new/@jest/snapshot-utils@15793

@jest/source-map

npm i https://pkg.pr.new/@jest/source-map@15793

@jest/test-result

npm i https://pkg.pr.new/@jest/test-result@15793

@jest/test-sequencer

npm i https://pkg.pr.new/@jest/test-sequencer@15793

@jest/transform

npm i https://pkg.pr.new/@jest/transform@15793

@jest/types

npm i https://pkg.pr.new/@jest/types@15793

jest-util

npm i https://pkg.pr.new/jest-util@15793

jest-validate

npm i https://pkg.pr.new/jest-validate@15793

jest-watcher

npm i https://pkg.pr.new/jest-watcher@15793

jest-worker

npm i https://pkg.pr.new/jest-worker@15793

pretty-format

npm i https://pkg.pr.new/pretty-format@15793

commit: 33786e3

Copy link
Member

@cpojer cpojer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@cpojer cpojer merged commit a2dd2d0 into jestjs:main Aug 27, 2025
5 checks passed
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: jest-leak-detector getHeapSnapshot should be able to be disabled via argument

2 participants