text: import '@testing-library/jest-dom/extend-expect'
  
  require('jest-localstorage-mock')
  
  jest.mock('axios-hooks')
  jest.mock('graphql-hooks')
  
  window.__ENV = {
    REACT_APP_CONCEPT_LDS: process.env.REACT_APP_CONCEPT_LDS,
    REACT_APP_EXPLORATION_LDS: process.env.REACT_APP_EXPLORATION_LDS
  }
  
  global.window.scrollTo = jest.fn()
  
  // https://github.com/testing-library/react-testing-library#suppressing-unnecessary-warnings-on-react-dom-168
  const originalError = console.error
  
  beforeAll(() => {
    console.error = (...args) => {
      if (/Warning.*not wrapped in act/.test(args[0])) {
        return
      }
      originalError.call(console, ...args)
    }
  })
  
  afterAll(() => {
    console.error = originalError
  })
  