[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/testing](../../README) / [index](../README) / TestResponseContext

# Interface: TestResponseContext

Defined in: [testing/src/TestResponse.ts:30](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/testing/src/TestResponse.ts#L30)

Optional extras [TestApp](../classes/TestApp) attaches while building a response.

## Properties

### session?

> `optional` **session?**: [`SessionDecoder`](../type-aliases/SessionDecoder)

Defined in: [testing/src/TestResponse.ts:32](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/testing/src/TestResponse.ts#L32)

Decoder bound to the app's `session.driver`.

***

### exception?

> `optional` **exception?**: `unknown`

Defined in: [testing/src/TestResponse.ts:38](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/testing/src/TestResponse.ts#L38)

The exception the request raised, captured by
[TestApp.withoutExceptionHandling](../classes/TestApp#withoutexceptionhandling). Included in assertion failures so
a 500 reports the bug rather than the error page rendered from it.
