Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/testing/mock.ts>MockError

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class MockError
extends Error
import { MockError } from "https://deno.land/std@0.204.0/testing/mock.ts";

An error related to spying on a function or instance method.

Constructors

new
MockError(message: string)