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

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