1ba31d8 Nov 5, 2018
1 contributor

Users who have contributed to this file

14 lines (9 sloc) 567 Bytes

Test timeouts

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