Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak_nest/test_deps.ts>testing.MockContextOptions

Refer to nestjs to realize some common functions for Deno
Go to Latest
interface testing.MockContextOptions
import { type testing } from "https://deno.land/x/oak_nest@v1.13.15/test_deps.ts";
const { MockContextOptions } = testing;

Options that can be set in a mock context.

Type Parameters

R extends string
optional
P extends RouteParams<R> = RouteParams<R>
optional
S extends State = Record<string, any>

Properties

optional
app: Application<S>
optional
ip: string
optional
method: string
optional
params: P
optional
path: string
optional
state: S
optional
headers: [string, string][]