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
{{ message }}
Repository navigation
node:test hangs when BroadcastChannel is left open #52073
How often does it reproduce? Is there a required condition?
100%
What is the expected behavior? Why is that the expected behavior?
node:test should kill the open broadcast channel when the tests finish (this is what every other test runner I know of does, ex vitest).
What do you see instead?
The command hangs indefinitely.
Additional information
This is especially relevant for tests of code that will run in a browser environment, where something like process.on('exit') doesn't exist, and the BroadcastChannel would not be manually closed (like it is in my "fixed" example above).
Activity
MoLow commentedon Mar 13, 2024
@JakobJingleheimer this seems to duplicate #49925