Is there a JS test framework that will provide a backtrace if a test exceeds a timeout?
-
-
We do that in React test suite with a Babel plugin. https://reactjs.org/blog/2017/12/15/improving-the-repository-infrastructure.html#preventing-infinite-loops …
-
Neat! Although this just seems to be for while loops? I’d want to handle more complex cases. From what I’ve seen it’s possible to start a test worker in node debug mode and then use the debug protocol to get a backtrace when it doesn’t respond.
- 5 more replies
New conversation -
-
-
Chrome inspector, just hit the Source panel’s pause button? In that situation I usually end up on the line of some hot bit of mess doing too much work
-
For automatic though I feel like it’d be a hell of a lot of monkeypatching or istanbul-style instrumentation
- 1 more reply
New conversation -
-
-
This Tweet is unavailable.
-
Not really. Event loop blocked for 5 seconds, get a backtrace from the process, kill it, then surface it to the user. No prediction or magical heuristics required.
- 2 more replies
-
-
-
Hello, got a second to chat. Very important
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 