Socket
Socket
Sign inDemoInstall

ava-thenable

Package Overview
Dependencies
4
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ava-thenable

> `await` [AVA](https://github.com/avajs/ava) tests


Version published
Weekly downloads
6
increased by500%
Maintainers
1
Install size
87.5 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 04 Sep 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc