From 1e3b072ab7aee9ce78d8faa774287902792fab90 Mon Sep 17 00:00:00 2001 From: Chrisyee22 Date: Sun, 3 Mar 2019 08:06:56 -0800 Subject: [PATCH] Document `timeout` configuration Fixes #2025. --- docs/06-configuration.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/06-configuration.md b/docs/06-configuration.md index 5206bfe09..cae316d76 100644 --- a/docs/06-configuration.md +++ b/docs/06-configuration.md @@ -62,6 +62,7 @@ Arguments passed to the CLI will always take precedence over the CLI options con - `require`: extra modules to require before tests are run. Modules are required in the [worker processes](./01-writing-tests.md#process-isolation) - `babel`: test file specific Babel options. See our [Babel recipe](./recipes/babel.md#configuring-babel) for more details - `babel.extensions`: extensions of test files that will be precompiled using AVA's Babel presets. Setting this overrides the default `"js"` value, so make sure to include that extension in the list +- `timeout`: 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. See our [timeout documentation](./07-test-timeouts.md) for more options. Note that providing files on the CLI overrides the `files` option. If you've configured a glob pattern, for instance `test/**/*.test.js`, you may want to repeat it when using the CLI: `ava 'test/integration/*.test.js'`.