diff --git a/nock/nock.d.ts b/nock/nock.d.ts index 3cd92e65a..44d7080a0 100644 --- a/nock/nock.d.ts +++ b/nock/nock.d.ts @@ -56,6 +56,7 @@ declare module "nock" { reply(responseCode: number, body?: Object, headers?: Object): Scope; reply(responseCode: number, callback: (uri: string, body: string) => string, headers?: Object): Scope; replyWithFile(responseCode: number, fileName: string): Scope; + replyWithError(errorMessage: string): Scope; defaultReplyHeaders(headers: Object): Scope;