From df954dc90f35fa3786a146fbf32e069023f4d716 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 16 Sep 2020 13:37:12 -0400 Subject: [PATCH] chore: do not log warned error during tests --- packages/runtime-core/src/errorHandling.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/errorHandling.ts b/packages/runtime-core/src/errorHandling.ts index b9896c58..1823f6b7 100644 --- a/packages/runtime-core/src/errorHandling.ts +++ b/packages/runtime-core/src/errorHandling.ts @@ -153,7 +153,7 @@ function logError( // crash in dev by default so it's more noticeable if (throwInDev) { throw err - } else { + } else if (!__TEST__) { console.error(err) } } else {