Skip to content

Commit 682e310

Browse files
authored
docs: Clarify scope of jest.setTimeout (#9676)
1 parent 9f0339c commit 682e310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/JestObjectAPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ Returns the number of fake timers still left to run.
643643

644644
### `jest.setTimeout(timeout)`
645645

646-
Set the default timeout interval for tests and before/after hooks in milliseconds.
646+
Set the default timeout interval for tests and before/after hooks in milliseconds. This only affects the test file from which this function is called.
647647

648648
_Note: The default timeout interval is 5 seconds if this method is not called._
649649

0 commit comments

Comments
 (0)