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

x/oak/mod.ts>testing.createMockNext

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
function testing.createMockNext
import { testing } from "https://deno.land/x/oak@13.2.4/mod.ts";
const { createMockNext } = testing;

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

Returns

() => Promise<void>