Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Go to Latest
function oak.testing.createMockNext
import { oak } from "https://deno.land/x/hex@0.6.3/src/fw/service/deps.ts";
const { createMockNext } = oak.testing;

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