We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 103c409 commit ec2f3ecCopy full SHA for ec2f3ec
src/index.d.ts
@@ -12,6 +12,7 @@ declare module "jest-fetch-mock" {
12
(input?: string | Request, init?: RequestInit): Promise<Response>;
13
mockResponse(body: string, init?: MockParams): Fetch;
14
mockResponseOnce(body: string, init?: MockParams): Fetch;
15
+ once(body: string, init?: MockParams): Fetch;
16
mockResponses(...responses : Array<[string] | [string, MockParams]>): Fetch;
17
mockReject(error?: Error): Fetch;
18
mockRejectOnce(error?: Error): Fetch;
0 commit comments