basalt / testing/src / TestResponse
Interface: TestResponse
Defined in: testing/src/app.ts:37
Adapter-neutral response every driver returns. Fastify's inject response satisfies it structurally (statusCode/headers/body/json()), so suites written against the default adapter read responses exactly as before; the Express and Hono drivers build the same shape from a real fetch Response.
Properties
body
> body: string
Defined in: testing/src/app.ts:40
headers
> headers: Record<string, string | number | string[] | undefined>
Defined in: testing/src/app.ts:39
statusCode
> statusCode: number
Defined in: testing/src/app.ts:38
Methods
json()
> json<T>(): T
Defined in: testing/src/app.ts:42
Type Parameters
T
T = any
Returns
T