@fetch-mock/vitest
Version:
Vitest wrapper for fetch-mock
15 lines (14 loc) • 495 B
TypeScript
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;