Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class MockBuilder
extends TestDoubleBuilder<ClassToMock>
import { MockBuilder } from "https://deno.land/x/rhum@v2.1.0/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.