/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 */
describe('console', () => {
  let React;
  let ReactDOM;
  let act;
  let fakeConsole;
  let mockError;
  let mockInfo;
  let mockLog;
  let mockWarn;
  let patchConsole;
  let unpatchConsole;
  beforeEach(() => {
    jest.resetModules();
    const Console = require('react-devtools-shared/src/backend/console');
    patchConsole = Console.patch;
    unpatchConsole = Console.unpatch;