@benchristel/taste-timeout
v0.0.0
Published
Timeouts for async Taste tests
Readme
@benchristel/taste-timeout
Add timeouts to your async taste tests.
Installation
yarn add @benchristel/taste-timeoutAdd 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.
