cli-dev-dependencies
Version:
Customized dev dependencies for ContentStack projects
24 lines (23 loc) • 677 B
TypeScript
import sinon from 'sinon';
import { FancyTypes } from 'fancy-test';
import { FancyBaseType } from './types';
type TestWitSpyType = FancyTypes.Base<FancyTypes.Context, FancyBaseType & {
spy: {
output: {
[key: string]: {
[key: string]: sinon.SinonSpy;
};
};
args: [object: any, path: string, prefix?: string];
};
}>;
export declare function spy<T, K extends keyof T>(object: T, path: K, prefix?: string): {
run(ctx: {
spy: {
[key: string]: sinon.SinonSpy<any[], any>;
};
}): void;
finally(): void;
};
export declare const fancy: TestWitSpyType;
export default fancy;