testTimeout
- 类型:
number - 默认值:
5_000 - CLI:
--testTimeout=5000
测试的默认超时时间(以毫秒为单位)。设置为 0 禁用超时。
Rstest 会根据以下优先级顺序确定测试超时时间:
- 每个测试用例中的 timeout 配置
- 测试文件中通过
rstest.setConfig({ testTimeout })配置的超时时间 - CLI 中的
--testTimeout选项 - 配置文件中的
testTimeout选项 - 默认值
5000毫秒