Skip to content

Function: newJsonFetchResponse

testing.newJsonFetchResponse

newJsonFetchResponse<T>(body, status?, headers?): FetchResponse<T>

Type parameters

Name
T

Parameters

Name Type Default value
body T undefined
status number 200
headers? Object undefined

Returns

FetchResponse<T>

Defined in

testing/mocks.ts:43