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
It would good to better understand what jest is doing, how that interacts poorly with other modules redefining things, and determine if there's any proactive steps we can take to detect jest and avoid the leaks.
During my testing, I observed that just importing the agent once did not seem to cause a leak. It had to be imported twice from two distinct paths of the test's dependency tree to start leaking (e.g A-B-C-agent and A-D-C-agent)
Proposed Next Steps:
reproduce issue in isolation
determine what jest is doing and why that leads to leaking
if possible, take proactive steps to avoid leaking
The text was updated successfully, but these errors were encountered:
We've received reports that's the agent will leak when used inside the jest testing framework. This is a known issue with jest and modules that employ some form of redefining modules/monkey-patching.
It would good to better understand what jest is doing, how that interacts poorly with other modules redefining things, and determine if there's any proactive steps we can take to detect jest and avoid the leaks.
Other Data Points
From @pgayvallet
Proposed Next Steps:
The text was updated successfully, but these errors were encountered: