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

x/superdeno/src/superdeno.ts>superdeno

Super-agent driven library for testing Deno HTTP servers.
Go to Latest
function superdeno
import { superdeno } from "https://deno.land/x/superdeno@4.8.0/src/superdeno.ts";

Takes a a url string, http.Server, a request handling function, or an object that implements an app.listen() method (which mirrors the http.serve interface).

Accepts an optional second argument of secure to determine whether connections should be over HTTPS (true) or HTTP (false)

If SuperDeno identifies that a server is not already listening for connections, then one is bound to an ephemeral port for you so there is no need to keep track of ports.

Parameters

optional
secure: boolean