1.2.2 • Published 5 years ago

ava-thenable v1.2.2

Weekly downloads
5
License
MIT
Repository
-
Last release
5 years ago

ava-thanable

await AVA tests

Build Status Coverage Status

Example

import test from 'ava-thenable';

const login = test('login', t => {
	t.pass();
});

test.join(login, 'post something', t => {
	t.pass();
});

Install

yarn add --dev ava-thenable

API

This module only extends the AVA API, all the methods not mentioned here should work the same way they work with vanilla AVA.

test(...args)

Returns a Promise that resolves when the test has finished.

test.join(...testPromises, ...args)

Defines a test that waits the promises of other tests (testPromises). Named after Bluebird.join.

test.configureThenable(options)

Make a call to test.configureThenable before defining any tests.

Example:

import test from 'ava-thenable';

test.configureThenable({
	concurrency: 3,
});

// ...

concurrency

Type: number Default: Infinity

Concurrency limit.

This option is passed to p-queue

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago