From e005ca2e2e2e7d18bd7993bf63976b8a9ee58f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LeoYuan=20=E8=A2=81=E5=8A=9B=E7=9A=93?= Date: Thu, 16 Jun 2022 23:42:22 +0800 Subject: [PATCH] chore: suppress boring warnings emitted from babel --- packages/designer/tests/fixtures/window.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/designer/tests/fixtures/window.ts b/packages/designer/tests/fixtures/window.ts index 86d1787b7..6f3e03a88 100644 --- a/packages/designer/tests/fixtures/window.ts +++ b/packages/designer/tests/fixtures/window.ts @@ -19,4 +19,10 @@ Object.defineProperty(window, 'React', { window.scrollTo = () => {}; window.console.warn = () => {}; +const originalLog = window.console.log; +window.console.log = (...args) => { + // suppress boring warnings + if (args[0].includes('@babel/plugin-proposal-private-property-in-object')) return; + originalLog.apply(window.console, args); +}; window.React = window.React || {};