refactor to simplify tests
This commit is contained in:
+1
-1
@@ -104,7 +104,7 @@ console.error = (...args) => {
|
||||
// the react's act() warning usually doesn't contain any useful stack trace
|
||||
// so we're catching the log and re-logging the message with the test name,
|
||||
// also stripping the actual component stack trace as it's not useful
|
||||
if (args[0]?.includes("act(")) {
|
||||
if (args[0]?.includes?.("act(")) {
|
||||
_consoleError(
|
||||
yellow(
|
||||
`<<< WARNING: test "${
|
||||
|
||||
Reference in New Issue
Block a user