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
In stdin.ts a keypress listener is registered, together with code to unregister it - by passing a reference to handler function.
In my custom reporter, I don't have the reference, so the next thing to try was to call
process.stdin.removeListeners()
//and then tried this
process.stdin.removeListeners('keypress')
Sadly this has no effect and the keys still trigger, I was able to bind my own logic for handling keys in similar fashion of the original code, these two then live side by side.
I would like to handle interactivity on my reporter by myself, so is there any way to get rid of this listener?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In stdin.ts a keypress listener is registered, together with code to unregister it - by passing a reference to handler function.
In my custom reporter, I don't have the reference, so the next thing to try was to call
Sadly this has no effect and the keys still trigger, I was able to bind my own logic for handling keys in similar fashion of the original code, these two then live side by side.
I would like to handle interactivity on my reporter by myself, so is there any way to get rid of this listener?
Beta Was this translation helpful? Give feedback.
All reactions