lolosia-web/vitest.setup.ts

6 lines
196 B
TypeScript
Raw Normal View History

2023-02-02 16:07:38 +08:00
import { config } from '@vue/test-utils'
import { vi } from 'vitest'
import ResizeObserver from 'resize-observer-polyfill'
vi.stubGlobal('ResizeObserver', ResizeObserver)
config.global.stubs = {}