Is there a JS test framework that will provide a backtrace if a test exceeds a timeout?
-
Show this thread
-
Example: a test condition causes a synchronous infinite loop
4 replies 0 retweets 6 likesShow this thread -
Replying to @sebmck
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
1 reply 0 retweets 0 likes -
For automatic though I feel like it’d be a hell of a lot of monkeypatching or istanbul-style instrumentation
1 reply 0 retweets 0 likes
Replying to @grrowl
Sebastian Retweeted Sebastian
Sebastian added,
SebastianVerified account @sebmck
Replying to @dan_abramov
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.
12:22 AM - 24 Feb 2019
0 replies
0 retweets
1 like
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 