mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-13 04:03:07 +00:00
chore: suppress boring warnings emitted from babel
This commit is contained in:
parent
8dab2ce68a
commit
e005ca2e2e
6
packages/designer/tests/fixtures/window.ts
vendored
6
packages/designer/tests/fixtures/window.ts
vendored
@ -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 || {};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user