Interface ConstructorSpy<Self, Args>
interface ConstructorSpy<Self, Args> {
new ConstructorSpynew (...args: Args): Self;
calls: SpyCall<Self, Args, Self>[];
original: (new (...args: Args) => Self);
restored: boolean;
restore(): void;
}
new ConstructorSpynew (...args: Args): Self;
calls: SpyCall<Self, Args, Self>[];
original: (new (...args: Args) => Self);
restored: boolean;
restore(): void;
}
A constructor wrapper that records all calls made to it.