jest.retryTimes() with jest-circus does not retry failed tests.
See original GitHub issue🐛 Bug Report
jest.retryTimes() does not retry.
To Reproduce
Follow the documented steps
Expected behavior
It should retry n
times when jest.retryTimes(n)
is set.
Link to repl or repo (highly encouraged)
Run npx envinfo --preset jest
Paste the results here:
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Binaries:
Node: 8.11.1 - ~/.nvm/versions/node/v8.11.1/bin/node
Yarn: 1.7.0 - /usr/local/bin/yarn
npm: 5.6.0 - ~/.nvm/versions/node/v8.11.1/bin/npm
npmPackages:
jest: ^23.4.1 => 23.4.1
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:8 (2 by maintainers)
Top Results From Across the Web
how to make a jest test fail at first time even using jest ...
I would like to make only this particular test fail the first time. Jest Circus ignore the update of jest.retryTimes at the beginning...
Read more >Why auto-retry test execution in a test framework is wrong?
Let's see a sample 'auto-retry' syntax in a test framework: jest.retryTimes(3) //set maximum retries number describe('Test', () => { test(' ...
Read more >The Jest Object
The most common use of this API is for specifying the module a given test intends to be testing (and thus doesn't want...
Read more >jest - Quality Thoughts
jest.retryTimes(1). test( 'can use xpath selectors to find elements' , async () => {. global.page = await pages.spawnPage(). await nav.
Read more >jest-circus | Yarn - Package Manager
jest-circus. The next-gen test runner for Jest ... Performance. 29.3.1. Fixes. [jest-config] Do not warn about preset in ProjectConfig #13583 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@laat good catch! Thanks for the nice repro example. I’m on this. Looks like a legitimate bug.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.