javascriptava

Does AVA have a default for timeouts?


The documentation mentions the ability to configure a timeout, but it neglects to mention the default state. I'll try and look at the source code to figure this out to post a helpful answer here shortly.

https://github.com/avajs/ava


Solution

  • If the CLI argument --timeout is not supplied then the default is set to conf.timeout, which is extracted via an ava.config.js file (optional). So AVA does NOT have a default timeout without a user explicitly setting it.

    https://github.com/avajs/ava/blob/master/lib/cli.js

    https://github.com/avajs/ava/blob/master/lib/load-config.js