Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
class MockBuilder
import { MockBuilder } from "https://deno.land/x/rhum@v2.1.0-rc.1/src/mock/mock_builder.ts";

Builder to help build a mock object. This does all of the heavy-lifting to create a mock object. Its create() method returns an instance of Mock, which is basically an original object with added data members for verifying behavior.

Type Parameters

ClassToMock

Methods

Create the mock object.