funkwhale/front/test/setup/mock-audio-context.ts

10 wiersze
197 B
TypeScript
Czysty Zwykły widok Historia

import { AudioContext } from 'standardized-audio-context-mock'
import { vi, beforeAll } from 'vitest'
beforeAll(() => {
vi.mock('standardized-audio-context', () => ({
AudioContext
}))
})