await
AVA tests
import test from 'ava-thenable';
const login = test('login', t => {
t.pass();
});
test.join(login, 'post something', t => {
t.pass();
});
yarn add --dev ava-thenable
This module only extends the AVA API, all the methods not mentioned here should work the same way they work with vanilla AVA.
Returns a Promise
that resolves when the test has finished.
Defines a test that waits the promises of other tests (testPromises
). Named after Bluebird.join.
Make a call to test.configureThenable
before defining any tests.
Example:
import test from 'ava-thenable';
test.configureThenable({
concurrency: 3,
});
// ...
Type: number
Default: Infinity
Concurrency limit.
This option is passed to p-queue