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

x/molt/lib/std/testing.ts

Update dependencies the Deno way
Latest
import * as molt from "https://deno.land/x/molt@0.17.2/lib/std/testing.ts";

Functions

Run some shared teardown after all of the tests in the suite.

Run some shared teardown after each test in the suite.

Asserts that a spy is called as expected.

Asserts that a spy is called with a specific arg as expected.

Asserts that a spy is called as much as expected and no more.

Run some shared setup before all of the tests in the suite.

Run some shared setup before each test in the suite.

Registers a test suite.

Registers an individual test case.

Wraps a function or instance method with a Spy.

Replaces an instance method with a Stub.

Interfaces

A constructor wrapper that records all calls made to it.

Registers a test suite.

Call information recorded by a spy.

Registers an individual test case.

A function or instance method wrapper that records all calls made to it.

Call information recorded by a spy.

An instance method replacement that records all calls made to it.