Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jest.retryTimes() with jest-circus does not retry failed tests. #6727

Closed
laat opened this issue Jul 20, 2018 · 8 comments · Fixed by #6762
Closed

jest.retryTimes() with jest-circus does not retry failed tests. #6727

laat opened this issue Jul 20, 2018 · 8 comments · Fixed by #6762

Comments

@laat
Copy link

laat commented Jul 20, 2018

🐛 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
@laat
Copy link
Author

laat commented Jul 20, 2018

Maybe @palmerj3 can help?

@palmerj3
Copy link
Contributor

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

@dawnxuuu
Copy link

I have also encountered this.

@laat
Copy link
Author

laat commented Jul 28, 2018

Thanks! 👍

@Priyanka-Aher
Copy link

Priyanka-Aher commented Mar 31, 2019

I have the same issue, cannot get the jest.retryTimes(3) to work.
Followed the example in the documentation.
https://github.com/facebook/jest/blob/f45d1c939cbf55a71dbfdfc316d2be62b590197f/docs/JestObjectAPI.md#jestretrytimes
Could use some help.

npx envinfo --preset jest
npx: installed 1 in 2.468s

System:
OS: macOS 10.14.3
CPU: (8) x64 Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz
Binaries:
Node: 10.5.0 - ~/.nvm/versions/node/v10.5.0/bin/node
Yarn: 1.15.2 - /usr/local/bin/yarn
npm: 6.1.0 - ~/.nvm/versions/node/v10.5.0/bin/npm
npmPackages:
jest: ^23.6.0 => 23.6.0

@palmerj3
Copy link
Contributor

@uspriya2006 please provide a github repo that reproduces the problem. Thank you.

@Priyanka-Aher
Copy link

@uspriya2006 please provide a github repo that reproduces the problem. Thank you.

Sorry, I wasn't logging it before so didn't realize it's actually retrying, my bad.

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants