question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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)

Minimal Example Repo

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:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
palmerj3commented, Jul 21, 2018

@laat good catch! Thanks for the nice repro example. I’m on this. Looks like a legitimate bug.

0reactions
github-actions[bot]commented, May 12, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found