The "EventEmitter memory leak" issue with Node Test Runner #53531
Replies: 4 comments 4 replies
-
@nodejs/test_runner |
Beta Was this translation helpful? Give feedback.
-
Have you tried reproducing this issue on Node 22? |
Beta Was this translation helpful? Give feedback.
-
Quick note to say that I haven't found the time to try Node 22 yet, however, I have found something that helps (that maybe was obvious but I missed): setting This seems to work much more reliably for most of the applications in my monorepo. (I have a React app for which I still get a ton of |
Beta Was this translation helpful? Give feedback.
-
I use the test runner and didn't run into this issue. If you make a self contained repro (a gh repo with minimal code to reproduce the issue) I am happy to take a look and try and fix whatever is causing this. Bug reports are valuable :] |
Beta Was this translation helpful? Give feedback.
-
This might be more prevalent on Windows than other operating systems?
I get that watch mode is experimental so I can't expect it to work perfectly but I'm wondering if anyone has tips or tricks for getting it to work more consistently? 🙂
I find myself regularly kicking off my tests using combinations of
--watch
and--test-only
and immediately having to Ctrl+c and restart until it starts a "clean" execution. Sometimes it works well right off the bat; sometimes I multitask and work on something else, constantly Alt+Tabbing back to VS Code to Ctrl+C and restart the tests over and over again until it works.I'll note that I'm still on Node 20 because I want to be on the LTS version.
Beta Was this translation helpful? Give feedback.
All reactions