]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: do not log warned error during tests
authorEvan You <yyx990803@gmail.com>
Wed, 16 Sep 2020 17:37:12 +0000 (13:37 -0400)
committerEvan You <yyx990803@gmail.com>
Wed, 16 Sep 2020 17:37:12 +0000 (13:37 -0400)
packages/runtime-core/src/errorHandling.ts

index b9896c58e190096b164f8ff0c5f779e5e72972be..1823f6b729cc7a8cb94a26d36855ed9940c12ec0 100644 (file)
@@ -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 {