const isReactLifecycleWarning = (warning) => {
  const reReactLifecycleWarning = new RegExp(
    'Warning: componentWill[^\\s]+ has been renamed, and is not recommended for use. ' +
      'See https://fb.me/react-async-component-lifecycle-hooks for details.'
  );
  return Boolean(warning.match(reReactLifecycleWarning));
};

const isSharedArrayBufferWarning = (warning) =>
  warning.startsWith(
    'SharedArrayBuffer will require cross-origin isolation as of M91, around May 2021.'
  );

const isIntolerableWarning = (type, text) =>
  type === 'warning' &&
  !isReactLifecycleWarning(text) &&
  !isSharedArrayBufferWarning(text);

exports.handleConsoleOutput = (msg) => {
  const type = msg.type();
  const text = msg.text();
  if (type === 'error' || isIntolerableWarning(type, text)) {
    throw new Error(`${type} in browser console: ${text}`);
  }
};

@@ -1,637 +1,4 @@
-const isReactLifecycleWarning = (warning) =%3E %7B%0A  const reReactLifecycleWarning = new RegExp(%0A    'Warning: componentWill%5B%5E%5C%5Cs%5D+ has been renamed, and is not recommended for use. ' +%0A      'See https://fb.me/react-async-component-lifecycle-hooks for details.'%0A  );%0A  return Boolean(warning.match(reReactLifecycleWarning));%0A%7D;%0A%0Aconst isSharedArrayBufferWarning = (warning) =%3E%0A  warning.startsWith(%0A    'SharedArrayBuffer will require cross-origin isolation as of M91, around May 2021.'%0A  );%0A%0Aconst isIntolerableWarning = (type, text) =%3E%0A  type === 'warning' &&%0A  !isReactLifecycleWarning(text) &&%0A  !isSharedArrayBufferWarning(text);%0A%0A
 expo
@@ -114,44 +114,8 @@
 ror'
- %7C%7C isIntolerableWarning(type, text)
 ) %7B%0A

remove superfluous warning checks