mirror of
https://github.com/koel/koel
synced 2024-11-15 08:57:16 +00:00
11 lines
309 B
TypeScript
11 lines
309 B
TypeScript
import vueSnapshotSerializer from 'jest-serializer-vue'
|
|
import { expect, vi } from 'vitest'
|
|
|
|
expect.addSnapshotSerializer(vueSnapshotSerializer)
|
|
|
|
global.ResizeObserver = global.ResizeObserver ||
|
|
vi.fn().mockImplementation(() => ({
|
|
disconnect: vi.fn(),
|
|
observe: vi.fn(),
|
|
unobserve: vi.fn()
|
|
}))
|