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

x/oak_http_proxy/test/deps.ts>Oak.testing.createMockContext

Proxy middleware for Deno Oak HTTP servers. 🐿 🦕
Latest
function Oak.testing.createMockContext
import { Oak } from "https://deno.land/x/oak_http_proxy@2.3.0/test/deps.ts";
const { createMockContext } = Oak.testing;

Create a mock of Context or RouterContext.

Type Parameters

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

Parameters

optional
unnamed 0: MockContextOptions<R> = [UNSUPPORTED]