Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Mar 26, 2024
1 parent b4b3986 commit 1870f9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ test('will fail', () => {
});
```

`retryImmediately` option is used to retry the failed test immediately after the failure. If this option is not specified, the tests are retried after Jest is finished running all test in a file.
`retryImmediately` option is used to retry the failed test immediately after the failure. If this option is not specified, the tests are retried after Jest is finished running all other tests in the file.

```js
jest.retryTimes(3, {retryImmediately: true});
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-circus/src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const _runTestsForDescribeBlock = async (
const hasRetryTimes = retryTimes > 0;
await _runTest(child, isSkipped);

//If immediate retry is set, we retry the test immediately after the first run
// If immediate retry is set, we retry the test immediately after the first run
if (
retryImmediately &&
hasErrorsBeforeTestRun === false &&
Expand Down

0 comments on commit 1870f9c

Please sign in to comment.