Skip to main content
Version: Current

foundation-testing.sinonwrapper

Home > @genesislcap/foundation-testing > SinonWrapper

SinonWrapper type

Crates an object with a key value pair for each spied function where the key is the function name and the value is the sinon wrapped spy function

Signature:

export type SinonWrapper<T extends {
[K in keyof T]: (...args: any) => any;
}> = {
[K in keyof T]: sinon.SinonSpy<Parameters<T[K]>, ReturnType<T[K]>>;
};