Function: newJsonFetchResponse
testing.newJsonFetchResponse
â–¸ newJsonFetchResponse<T
>(body
, status?
, headers?
): FetchResponse
<T
>
Type parameters
Parameters
Name |
Type |
Default value |
body |
T |
undefined |
status |
number |
200 |
headers? |
Object |
undefined |
Returns
FetchResponse
<T
>
Defined in
testing/mocks.ts:43