UNPKG

@fetch-mock/vitest

Version:
15 lines (14 loc) 495 B
import { FetchMock } from 'fetch-mock'; import './vitest-extensions.js'; export type { FetchMockMatchers } from './types.js'; type MockResetOptions = { includeSticky: boolean; }; declare class FetchMockVitest extends FetchMock { mockClear(): this; mockReset(options?: MockResetOptions): this; mockRestore(options?: MockResetOptions): this; } export declare function manageFetchMockGlobally(): void; declare const fetchMockVitest: FetchMockVitest; export default fetchMockVitest;