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

x/oak/testing.ts

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

A collection of utility APIs which can make testing of an oak application easier.

Variables

Allows external parties to modify the context state.

Functions

Creates a mock of Application.

Create a mock of Context or RouterContext.

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

Interfaces

Options that can be set in a mock context.