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
Fix#42: Hack around React's development mode error triggering hack.
React's development mode has a funny way of triggering errors,
which tries to convince that exceptions are uncaught (for their
development tools to report them) even though React catches them
for the "error boundaries" feature.
Since our jsdom handler reports uncaught exceptions as hard
failures that fail the run, this creates a very bad interaction
where every caught-but-not-really exception crashes the run.
We hack around this hack by detecting when our error handler is in
fact called by React's own hack. In that case, we ignore the
uncaught exception, and proceed with normal execution.
We add a test that actually uses React's error boundaries, and
makes sure that the React component can still detect the error and
its error message.
0 commit comments