x/oak/testing.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
function createMockContext
import { createMockContext } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/testing.ts?s=createMockContext";

Create a mock of Context or RouterContext.

Type Parameters

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