mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-08-17 03:27:00 +08:00
16 lines
389 B
TypeScript
16 lines
389 B
TypeScript
import '@testing-library/jest-dom/vitest'
|
|
import { cleanup } from '@testing-library/react'
|
|
import { afterEach, vi } from 'vitest'
|
|
|
|
afterEach(() => cleanup())
|
|
|
|
Object.defineProperty(globalThis.URL, 'createObjectURL', {
|
|
configurable: true,
|
|
value: vi.fn(() => 'blob:wxe-test-audio')
|
|
})
|
|
|
|
Object.defineProperty(globalThis.URL, 'revokeObjectURL', {
|
|
configurable: true,
|
|
value: vi.fn()
|
|
})
|