jestjs - jest-circus 无法重试失败的测试
问题描述
我正在尝试设置使用 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
笑话马戏团:26.6.3
节点:10.12.27
解决方案
推荐阅读
- python - 错误标准错误:
: 在存储库之外 - .net - 如果我不能重用它,在干净架构的基础设施层中添加 EmailSender 的目的是什么?
- javascript - 如何在Node中逐行编写新的csv文件?
- forth - Forth 中的 RDROP 是什么?
- java - 功能停止保存 forge 1.12.2
- azure - Azure Blob 存储生命周期管理 - 嵌入式文件夹
- android - 语言有时会在我的 Android 应用程序中更改为语言系统
- javascript - 如何将 PDF 转换为 PNG 数组并将它们下载为 .zip 文件?
- node.js - 类型错误:newUser.find 不是函数
- python - 将图像保存到同一目录 Python 中的文件夹中