Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak/testing.ts>createMockNext

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

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

Returns

() => Promise<void>