Searched refs:replyWithError (Results 1 – 4 of 4) sorted by relevance
33 replyWithError<TError extends Error = Error>(error: TError): MockScope;
163 replyWithError (error) { method in MockInterceptor
68 * **replyWithError** `(error: Error) => MockScope` - define an error for a matching request to thro…75 By default, `reply` and `replyWithError` define the behaviour for the first matching request only. …318 }).replyWithError(new Error('kaboom'))
200 .get('/-/ping?write=true').replyWithError({ message: 'Test Error', code: 'TEST' })216 .get('/-/ping?write=true').replyWithError({ message: 'Test Error', code: false })