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
Go to Latest
function createMockNext
import { createMockNext } from "https://deno.land/x/oak@v17.0.0/testing.ts";

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

Returns

() => Promise<void>