You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jest is reporting a memory leak, "Your test suite is leaking memory.".
Expected behavior
There should be no such report.
Code to reproduce
importgotfrom"got";test("just a test",()=>{expect(true).toBeTruthy();});// Not even called, but forcing loadfunctionloadIt(): void{console.log(got.name);}
It does not happen with other packages, for example replacing got with express or Mongodb.
What exactly is leaking? Does Jest show a trace log or something? There's nothing actionable in this report. Jest has also had many false-positives with the memory leak reporting in the past.
Describe the bug
Actual behavior
Jest is reporting a memory leak, "Your test suite is leaking memory.".
Expected behavior
There should be no such report.
Code to reproduce
It does not happen with other packages, for example replacing got with express or Mongodb.
Using:
Jest: 26.6.1
ts-jest: 26.4.3
jest.config.js
Checklist
The text was updated successfully, but these errors were encountered: