Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function testing.createMockNext
import { testing } from "https://deno.land/x/oak_sessions@v4.0.1/deps.ts";
const { createMockNext } = testing;

Creates a mock next() function which can be used when calling middleware.