refactor: imports shared polyfills in setupTests (#6571)

This commit is contained in:
Vignesh Mohankumar 2023-05-15 17:11:28 -04:00 committed by GitHub
parent fe6df38997
commit d73763ce75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,7 @@
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 {