element-plus/vitest.setup.ts

8 lines
198 B
TypeScript
Raw Permalink 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 = {}