AVA 是否有超时默认值?

Does AVA have a default for timeouts?

文档提到了配置超时的能力,但忽略了默认状态。我将尝试查看源代码来解决这个问题,以便 post 很快在这里得到一个有用的答案。

https://github.com/avajs/ava

如果未提供 CLI 参数 --timeout,则默认设置为 conf.timeout,它通过 ava.config.js 文件(可选)提取。因此 AVA 在没有用户明确设置的情况下没有默认超时。

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

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

原来的回答还是很有参考意义的。但是,根据 AVA 的 github 回购协议上的降价文件,似乎有一个 default timeout of 10s now