Skip to content

Commit

Permalink
Document timeout configuration
Browse files Browse the repository at this point in the history
Fixes #2025.
  • Loading branch information
Chrisyee22 authored and novemberborn committed Mar 3, 2019
1 parent d97f11d commit 1e3b072
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/06-configuration.md
Expand Up @@ -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'`.

Expand Down

0 comments on commit 1e3b072

Please sign in to comment.