-
-
Notifications
You must be signed in to change notification settings - Fork 34.8k
Closed as not planned
Closed as not planned
Copy link
Labels
fetchIssues and PRs related to the Fetch APIIssues and PRs related to the Fetch APImemoryIssues and PRs related to the memory management or memory footprint.Issues and PRs related to the memory management or memory footprint.
Description
Version
Node >=v19
Steps to reproduce
- Clone
enisdenjo/jest-fetch-leakrepo - Read its readme for local repro
- Check out the GitHub Actions for CI repo
Expected behavior
Doesn't leak ever.
Actual behavior
Leaks in Node >=v19 when test is repeated enough times.
Additional context
If a test, which uses native fetch, is iterated enough times in Node >=v19, Jest's --detectLeaks will report a memory leak.
This behaviour does not happen on Node <=v18.
Please check the leak detector tests in the CI.
Environment
ubuntu-latest from GitHub ActionsReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
fetchIssues and PRs related to the Fetch APIIssues and PRs related to the Fetch APImemoryIssues and PRs related to the memory management or memory footprint.Issues and PRs related to the memory management or memory footprint.