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

x/dectyl/lib/testing.ts

Prototype library for testing Deno Deploy scripts using the Deno CLI
Latest
import * as dectyl from "https://deno.land/x/dectyl@0.10.7/lib/testing.ts";

Functions

Asserts that there are no diagnostics returned, otherwise logs the diagnostics to the console and throws.

Asserts a request is effectively equal to the expected information. The options can be used to control the behavior of the comparison.

A helper function that creates a tuple with the information to create a Response object.

Return a request init that mocks what a Chromium request would look like from a client.