OptionalbodyBody backing json()/text()/bytes() on the mock request.
OptionalparamsPath parameters — defaults to {}.
OptionalqueryQuery string parameters — defaults to parse from the request URL's search params.
OptionalrequestPartial IRequest overrides (method, url, headers, etc.).
OptionalresponseResponse builder — defaults to new MockResponse().
OptionalruntimeRuntime services — when absent, the internal default is used.
OptionalservicesService registry — defaults to new MockServiceRegistry().
Typed as the IServiceRegistry interface (not the concrete
MockServiceRegistry) so a test may pass any implementation — a custom
fake, or a real kernel registry taken from a started app — matching
IRequestContext.services.
OptionalsignalAbort signal for ctx.signal. Precedence is
options.request.signal > options.signal > a live, never-aborting
AbortController().signal — request.signal wins because that is the
kernel's own rule (request.signal ?? NEVER_ABORT_CONTROLLER.signal).
OptionalstartDirect startTime override — highest precedence:
options.startTime ?? options.runtime?.hrtime() ?? 0.
Must be a monotonic reading, never Date.now().
OptionalstateRequest-scoped state — defaults to new Map().
Options for
createTestContext.Since
0.1.0