fix: show error if an action was not handled

This commit is contained in:
Satyajit Sahoo
2019-12-25 02:19:21 +01:00
parent 282f62c258
commit 0252bdc222
5 changed files with 33 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ const error = console.error;
console.error = (...args) =>
// Supress error messages regarding error boundary in tests
/Consider adding an error boundary to your tree to customize error handling behavior/m.test(
/(Consider adding an error boundary to your tree to customize error handling behavior|React will try to recreate this component tree from scratch using the error boundary you provided|Error boundaries should implement getDerivedStateFromError)/m.test(
args[0]
)
? void 0