mockzilla
Version:
A mocking toolkit leveraging the power of TypeScript to enhance your jest experience.
28 lines (27 loc) • 829 B
TypeScript
import { MockzillaExpectation } from "./types";
export declare class MockzillaNode {
private readonly path;
private readonly proxy;
readonly traps: Omit<Required<ProxyHandler<any>>, "enumerate">;
private disabled;
private children;
constructor(path: string);
private pathTo;
private notImplemented;
private disabledCheck;
private disabledCheckNotImplemented;
private getNested;
allow(key: string): void;
setValue(key: string, value: any): void;
addExpectation(key: string, expectation: MockzillaExpectation | null): void;
getCalls(key: string): any[][];
private getChild;
private createMethod;
private getChildNode;
getProxy(): any;
disable(): void;
enable(): void;
isDisabled(): boolean;
verify(): void;
verifyAndDisable(): void;
}