const ignoreWarns = [
'not wrapped in act',
'configured to support act',
'defaultProps will be removed',
];
// Hack off React warning to avoid too large log in CI.
console.error = (...args) => {
const str = args.join('').replace(/\n/g, '');
if (ignoreWarns.every((warn) => !str.includes(warn))) {
originConsoleErr(...args);
}
};
const ignoreWarns = [ 'not wrapped in act', 'configured to support act', 'defaultProps will be removed', ];
// Hack off React warning to avoid too large log in CI. console.error = (...args) => { const str = args.join('').replace(/\n/g, ''); if (ignoreWarns.every((warn) => !str.includes(warn))) { originConsoleErr(...args); } };