chore: do not log warned error during tests

This commit is contained in:
Evan You 2020-09-16 13:37:12 -04:00
parent dd40ad8fca
commit df954dc90f

View File

@ -153,7 +153,7 @@ function logError(
// crash in dev by default so it's more noticeable // crash in dev by default so it's more noticeable
if (throwInDev) { if (throwInDev) {
throw err throw err
} else { } else if (!__TEST__) {
console.error(err) console.error(err)
} }
} else { } else {