element-plus/vitest.setup.ts

8 lines
198 B
TypeScript
Raw Normal View History

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