UNPKG

fancy-test

Version:

extendable utilities for testing

13 lines (12 loc) 331 B
import { NockCallback, NockOptions } from './types'; export declare function nock(host: string, options: NockCallback | NockOptions, cb?: NockCallback): { run(): void; } | { run(ctx: { nock: number; }): Promise<void>; finally(ctx: { error?: Error | undefined; nock: number; }): void; };