Skip to main content
Module

x/rhum/mod.ts

A test double library
Go to Latest
import * as rhum from "https://deno.land/x/rhum@v2.1.0/mod.ts";

Functions

Create a dummy.

Get the builder to create fake objects.

Get the builder to create mocked objects.

Create a spy out of a function expression.

Create a stub function that returns "stubbed".

Interfaces

Interface that all errors must follow. This is useful when a client wants to throw a custom error class via .willThrow() for mocks and fakes.

Interface of verifier that verifies function expression calls.

Interface of verifier that verifies method calls.

Interface for spies on function expressions.

Interface for spies on object methods.

Base interface for verifiers.

Type Aliases

Describes the type as something that is callable.

Describes the type as a constructable object using the new keyword.

Describes the type as a method of the given generic Object.

Describes the MockExtension#calls property.