Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dectyl/lib/testing.ts

Prototype library for testing Deno Deploy scripts using the Deno CLI
Go to Latest
import * as dectyl from "https://deno.land/x/dectyl@0.10.3/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.