@benchristel/taste-timeout

0.0.0 • Public • Published

@benchristel/taste-timeout

Add timeouts to your async taste tests.

Installation

yarn add @benchristel/taste-timeout

Add this to your test-running code:

import {getAllTests, runTests} from "@benchristel/taste"
import {addTimeouts} from "@benchristel/taste-timeout"

const tests = addTimeouts(50 /* milliseconds */, getAllTests())
const results = await runTests(tests)

The timeout is per test case. In the example above, any async test that takes longer than 50ms will fail.

Readme

Keywords

none

Package Sidebar

Install

npm i @benchristel/taste-timeout

Weekly Downloads

2

Version

0.0.0

License

MIT

Unpacked Size

4.62 kB

Total Files

6

Last publish

Collaborators

  • benchristel