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

x/rhum/src/errors.ts

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

Classes

Error to throw in relation to fake logic.

Error to thrown in relation to mock logic.

Error to throw in relation to spy logic.

Error to throw in relation to verification logic. For example, when a method or function expression is being verified that it was called once via .verify("someMethod").toBeCalled(1). The stack trace shown with this error is modified to look like the following example: