Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/fw/service/deps.ts>oak.testing.createMockContext

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Go to Latest
function oak.testing.createMockContext
import { oak } from "https://deno.land/x/hex@0.6.3/src/fw/service/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]