Type Alias TapPlugin<B, O>

TapPlugin<B, O>: unknown extends O
    ? ((t: TestBase) => B)
    : ((t: TestBase, opts: O) => B)

The plugin export from any tap plugin

Type Parameters

  • B extends Object

    the return value of the plugin

  • O extends TestBaseOpts | any = unknown

    test options added by this plugin