UNPKG

fancy-test

Version:

extendable utilities for testing

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