element-plus/vitest.setup.ts
三咲智子 1d13ebb05d
feat: drop jest (#7248)
* feat: drop jest

* test: remove ssr

* test: rename

* chore: update tsconfig
2022-04-19 16:51:44 +08:00

8 lines
198 B
TypeScript

import { config } from '@vue/test-utils'
import { vi } from 'vitest'
import ResizeObserver from 'resize-observer-polyfill'
vi.stubGlobal('ResizeObserver', ResizeObserver)
config.global.stubs = {}