It often comes up as a problem in tests that when a scout.shutdown happens the event listeners are never removed, and the tests hang. It might be worth doing to just call .removeAllListeners in scout.shutdown, or add some way to remove all listeners (ScoutShutdownOpts?) and call that from the test functions.
It often comes up as a problem in tests that when a
scout.shutdownhappens the event listeners are never removed, and the tests hang. It might be worth doing to just call.removeAllListenersinscout.shutdown, or add some way to remove all listeners (ScoutShutdownOpts?) and call that from the test functions.