You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/JestObjectAPI.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -716,7 +716,7 @@ jest.setTimeout(1000); // 1 second
716
716
717
717
### `jest.retryTimes()`
718
718
719
-
Runs failed tests n-times until they pass or until the max number of retries is exhausted. This only works with the default [jest-circus](https://github.com/facebook/jest/tree/main/packages/jest-circus) runner!
719
+
Runs failed tests n-times until they pass or until the max number of retries is exhausted. This only works with the default [jest-circus](https://github.com/facebook/jest/tree/main/packages/jest-circus) runner! This must live at the top-level of a test file or in a describe block. Retries _will not_ work if `jest.retryTimes()` is called in a `beforeEach` or a `test` block.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-27.0/JestObjectAPI.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -672,7 +672,7 @@ jest.setTimeout(1000); // 1 second
672
672
673
673
### `jest.retryTimes()`
674
674
675
-
Runs failed tests n-times until they pass or until the max number of retries is exhausted. This only works with the default [jest-circus](https://github.com/facebook/jest/tree/main/packages/jest-circus) runner!
675
+
Runs failed tests n-times until they pass or until the max number of retries is exhausted. This only works with the default [jest-circus](https://github.com/facebook/jest/tree/main/packages/jest-circus) runner! This must live at the top-level of a test file or in a describe block. Retries _will not_ work if `jest.retryTimes()` is called in a `beforeEach` or a `test` block.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-27.1/JestObjectAPI.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -672,7 +672,7 @@ jest.setTimeout(1000); // 1 second
672
672
673
673
### `jest.retryTimes()`
674
674
675
-
Runs failed tests n-times until they pass or until the max number of retries is exhausted. This only works with the default [jest-circus](https://github.com/facebook/jest/tree/main/packages/jest-circus) runner!
675
+
Runs failed tests n-times until they pass or until the max number of retries is exhausted. This only works with the default [jest-circus](https://github.com/facebook/jest/tree/main/packages/jest-circus) runner! This must live at the top-level of a test file or in a describe block. Retries _will not_ work if `jest.retryTimes()` is called in a `beforeEach` or a `test` block.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-27.2/JestObjectAPI.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -672,7 +672,7 @@ jest.setTimeout(1000); // 1 second
672
672
673
673
### `jest.retryTimes()`
674
674
675
-
Runs failed tests n-times until they pass or until the max number of retries is exhausted. This only works with the default [jest-circus](https://github.com/facebook/jest/tree/main/packages/jest-circus) runner!
675
+
Runs failed tests n-times until they pass or until the max number of retries is exhausted. This only works with the default [jest-circus](https://github.com/facebook/jest/tree/main/packages/jest-circus) runner! This must live at the top-level of a test file or in a describe block. Retries _will not_ work if `jest.retryTimes()` is called in a `beforeEach` or a `test` block.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-27.4/JestObjectAPI.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -716,7 +716,7 @@ jest.setTimeout(1000); // 1 second
716
716
717
717
### `jest.retryTimes()`
718
718
719
-
Runs failed tests n-times until they pass or until the max number of retries is exhausted. This only works with the default [jest-circus](https://github.com/facebook/jest/tree/main/packages/jest-circus) runner!
719
+
Runs failed tests n-times until they pass or until the max number of retries is exhausted. This only works with the default [jest-circus](https://github.com/facebook/jest/tree/main/packages/jest-circus) runner! This must live at the top-level of a test file or in a describe block. Retries _will not_ work if `jest.retryTimes()` is called in a `beforeEach` or a `test` block.
0 commit comments