2022-05-12 13:21:14 +00:00
|
|
|
import vueSnapshotSerializer from 'jest-serializer-vue'
|
2022-07-10 14:19:11 +00:00
|
|
|
import { expect, vi } from 'vitest'
|
2022-05-12 13:21:14 +00:00
|
|
|
|
|
|
|
expect.addSnapshotSerializer(vueSnapshotSerializer)
|
2022-07-10 14:19:11 +00:00
|
|
|
|
|
|
|
global.ResizeObserver = global.ResizeObserver ||
|
|
|
|
vi.fn().mockImplementation(() => ({
|
|
|
|
disconnect: vi.fn(),
|
|
|
|
observe: vi.fn(),
|
|
|
|
unobserve: vi.fn()
|
|
|
|
}))
|
2022-07-22 16:59:28 +00:00
|
|
|
|
|
|
|
window.HTMLMediaElement.prototype.load = vi.fn()
|
|
|
|
window.HTMLMediaElement.prototype.play = vi.fn()
|
|
|
|
window.HTMLMediaElement.prototype.pause = vi.fn()
|
2022-07-24 11:47:18 +00:00
|
|
|
|
2022-09-14 17:40:08 +00:00
|
|
|
window.BASE_URL = 'http://localhost/'
|