mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 17:23:42 +08:00
10 lines
267 B
JavaScript
10 lines
267 B
JavaScript
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(
|
|
args[0]
|
|
)
|
|
? void 0
|
|
: error(...args);
|