开玩笑马戏团无法重试失败的测试

问题描述

我正在尝试设置使用 jest-circus runner 的重试机制。我确实遵循了示例,但它没有用。我记得以前可以用,但现在不能用了。我的代码在下面,你能给我一些胶水吗?

jest.retryTimes(3)
it('will fail',() => {
  expect(true).toBe(false)
})

我的运行命令是:yarn jest "<path to the test>" --testRunner="jest-circus/runner" --runInBand

输入脚本:4.0.2

开玩笑:24.0.13

Jest 马戏团:26.6.3

节点:10.12.27

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...