Commit d73763ce authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

refactor: imports shared polyfills in setupTests (#6571)

parent fe6df389
import '@testing-library/jest-dom' // jest custom assertions
import 'polyfills'
import 'jest-styled-components' // adds style diffs to snapshot tests
import 'polyfills'
import type { createPopper } from '@popperjs/core'
import { useWeb3React } from '@web3-react/core'
......@@ -32,8 +33,6 @@ global.matchMedia =
}
})
global.ResizeObserver = ResizeObserver
jest.mock('@popperjs/core', () => {
const core = jest.requireActual('@popperjs/core')
return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment