import { createMockContext } from "https://deno.land/x/oak@v13.2.5/testing.ts";
Create a mock of Context
or RouterContext
.
Type Parameters
optional
P extends RouteParams<R> = RouteParams<R>optional
S extends State = Record<string, any>Parameters
optional
unnamed 0: MockContextOptions<R> = [UNSUPPORTED]Returns
RouterContext<R, P, S>