Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class FakeBuilder
import { FakeBuilder } from "https://deno.land/x/rhum@v2.0.0/src/fake/fake_builder.ts";

Builder to help build a fake object. This does all of the heavy-lifting to create a fake object.

Constructors

new
FakeBuilder(constructorFn: Constructor<ClassToFake>)

Construct an object of this class.

Type Parameters

ClassToFake

Methods

Create the fake object.

withConstructorArgs(...args: unknown[]): this

Before constructing the fake object, track any constructor function args that need to be passed in when constructing the fake object.