import { Oak } from "https://deno.land/x/superdeno@4.9.0/test/deps.ts";
const { createMockContext } = Oak.testing;
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]