Skip to content

Commit

Permalink
docs: Clarify scope of jest.setTimeout (#9676)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphinesse authored Mar 25, 2020
1 parent 9f0339c commit 682e310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ Returns the number of fake timers still left to run.

### `jest.setTimeout(timeout)`

Set the default timeout interval for tests and before/after hooks in milliseconds.
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.

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

Expand Down

0 comments on commit 682e310

Please sign in to comment.