Skip to main content
Module

x/oak/testing.ts>createMockNext

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Extremely Popular
Go to Latest
function createMockNext
import { createMockNext } from "https://deno.land/x/oak@v15.0.0/testing.ts";

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

Returns

() => Promise<void>