Skip to content

Latest commit

History

History
15 lines (10 loc) 路 672 Bytes

07-test-timeouts.md

File metadata and controls

15 lines (10 loc) 路 672 Bytes

Test timeouts

Translations: Fran莽ais

Timeouts in AVA behave differently than in other test frameworks. AVA resets a timer after each test, forcing tests to quit if no new test results were received within the specified timeout. This can be used to handle stalled tests.

You can configure timeouts using the --timeout command line option, or in the configuration.

You can set timeouts in a human-readable way:

npx ava --timeout=10s # 10 seconds
npx ava --timeout=2m # 2 minutes
npx ava --timeout=100 # 100 milliseconds