tape
- Version 5.10.1
- Published
- 476 kB
- 25 dependencies
- MIT license
Install
npm i tapeyarn add tapepnpm add tapeOverview
tap-producing test harness for node and browsers
Index
Variables
Functions
Interfaces
Type Aliases
Variables
Functions
function createHarness
createHarness: (conf_?: HarnessConfig) => Harness;function createStream
createStream: (opts?: StreamOptions) => ThroughStream;function getHarness
getHarness: (opts?: HarnessConfig) => Harness;function harnessFunction
harnessFunction: { (this: Test, name: string, opts: tape.TestOptions, cb: Test.TestCase): Test; (this: Test, name: string, opts: tape.TestOptions): Test; (this: Test, name: string, cb: Test.TestCase): Test; (this: Test, name: string): Test; (this: Test, opts: tape.TestOptions, cb: Test.TestCase): Test; (this: Test, opts: tape.TestOptions): Test; (this: Test, cb: Test.TestCase): Test; (this: void, name: string, opts: tape.TestOptions, cb: Test.TestCase): Test; (this: void, name: string, opts: tape.TestOptions): Test; (this: void, name: string, cb: Test.TestCase): Test; (this: void, name: string): Test; (this: void, opts: tape.TestOptions, cb: Test.TestCase): Test; (this: void, opts: tape.TestOptions): Test; (this: void, cb: Test.TestCase): Test;};function onFailure
onFailure: (cb: Test.SyncCallback, ...rest: unknown[]) => void;function onFinish
onFinish: (cb: Test.SyncCallback, ...rest: unknown[]) => void;function only
only: { (name: string, cb: Test.TestCase): void; (name: string, opts: TestOptions, cb: Test.TestCase): void; (cb: Test.TestCase): void; (opts: TestOptions, cb?: Test.TestCase): void;};function run
run: () => void;function tape
tape: typeof tape;function wait
wait: () => void;Interfaces
interface AssertOptions
interface AssertOptions {}interface StreamOptions
interface StreamOptions {}property objectMode
objectMode?: boolean | undefined;Type Aliases
type Callback
type Callback = Test.Callback;type CreateStream
type CreateStream = typeof createStream;type Harness
type Harness = typeof harnessFunction & { run?: () => void; only: typeof only; _exitCode: number; _results: Results; _tests: Test[]; close: () => void; createStream: CreateStream; onFailure: HarnessEventHandler; onFinish: HarnessEventHandler;};type HarnessConfig
type HarnessConfig = { autoclose?: boolean; noOnly?: boolean; stream?: NodeJS.WritableStream | ThroughStream; exit?: boolean;} & StreamOptions;type HarnessEventHandler
type HarnessEventHandler = (cb: Test.SyncCallback, ...rest: unknown[]) => void;type InterceptResults
type InterceptResults = Test.InterceptResults;type RestoreFunction
type RestoreFunction = Test.RestoreFunction;type SyncCallback
type SyncCallback = Test.SyncCallback;type SyncOrAsyncCallback
type SyncOrAsyncCallback = Test.Callback;type TestCase
type TestCase = Test.TestCase;type TestOptions
type TestOptions = { objectPrintDepth?: number | undefined; skip?: boolean | string | undefined; timeout?: number | undefined; ignoreSyncTimeout?: boolean; todo?: boolean | string | undefined;};type WrapObject
type WrapObject<T extends Test.Callback> = Test.WrapObject<T>;type WrappedCall
type WrappedCall = Test.WrappedCall;type WrappedFn
type WrappedFn<T extends Test.Callback> = Test.WrappedFn<T>;type WrapResults
type WrapResults = Test.WrapResults;Package Files (1)
Dependencies (25)
Dev Dependencies (42)
- @arethetypeswrong/cli
- @ljharb/eslint-config
- @ljharb/tsconfig
- @types/array.prototype.every
- @types/array.prototype.flatmap
- @types/call-bind
- @types/concat-stream
- @types/deep-equal
- @types/defined
- @types/falafel
- @types/get-package-type
- @types/inherits
- @types/js-yaml
- @types/node
- @types/object-inspect
- @types/object-is
- @types/object-keys
- @types/object.assign
- @types/readable-stream
- @types/semver
- @types/string.prototype.trim
- @types/tap
- array.prototype.flatmap
- auto-changelog
- concat-stream
- cross-env
- eclint
- ecstatic
- es-value-fixtures
- eslint
- falafel
- jackspeak
- jiti
- js-yaml
- npm-run-posix-or-windows
- npmignore
- nyc
- safe-publish-latest
- semver
- tap
- tap-parser
- typescript
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/tape.
- Markdown[](https://www.jsdocs.io/package/tape)
- HTML<a href="https://www.jsdocs.io/package/tape"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2896 ms. - Missing or incorrect documentation? Open an issue for this package.
