0.0.0 • Published 3 years ago
@benchristel/taste-timeout v0.0.0
@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.
0.0.0
3 years ago