All checks were successful
Chore App Build and Push Docker Images / build-and-push (push) Successful in 2m37s
14 lines
503 B
TypeScript
14 lines
503 B
TypeScript
import { vi } from 'vitest'
|
|
|
|
// jsdom does not implement scrollTo — stub it to suppress "Not implemented" warnings
|
|
window.scrollTo = vi.fn()
|
|
|
|
// Globally mock imageCache so component tests don't make real fetch calls
|
|
// and don't spam "response.blob is not a function" errors in jsdom.
|
|
vi.mock('@/common/imageCache', () => ({
|
|
getCachedImageUrl: vi.fn().mockResolvedValue(''),
|
|
getCachedImageBlob: vi.fn().mockResolvedValue(new Blob()),
|
|
revokeImageUrl: vi.fn(),
|
|
revokeAllImageUrls: vi.fn(),
|
|
}))
|