Skip to content

Commit

Permalink
[doc] add note explaining when jest.setTimeout should be called (#6817
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ftes authored and thymikee committed Aug 10, 2018
1 parent 79c9e22 commit 9093a3c
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

- `[docs]` Document another option to avoid warnings with React 16 ([#5258](https://github.com/facebook/jest/issues/5258))

### Chore & Maintenance

- `[docs]` Add note explaining when `jest.setTimeout` should be called ([#6817](https://github.com/facebook/jest/pull/6817/files))

## 23.4.2

### Performance
Expand Down
2 changes: 2 additions & 0 deletions docs/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,8 @@ Set the default timeout interval for tests and before/after hooks in millisecond

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

_Note: The method must be called after the test framework is installed in the environment and before the test runs. A good place to do this is in the `setupTestFrameworkScriptFile`._

Example:

```js
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-22.0/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ Set the default timeout interval for tests and before/after hooks in millisecond

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

_Note: The method must be called after the test framework is installed in the environment and before the test runs. A good place to do this is in the `setupTestFrameworkScriptFile`._

Example:

```js
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-22.1/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ Set the default timeout interval for tests and before/after hooks in millisecond

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

_Note: The method must be called after the test framework is installed in the environment and before the test runs. A good place to do this is in the `setupTestFrameworkScriptFile`._

Example:

```js
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-22.2/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ Set the default timeout interval for tests and before/after hooks in millisecond

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

_Note: The method must be called after the test framework is installed in the environment and before the test runs. A good place to do this is in the `setupTestFrameworkScriptFile`._

Example:

```js
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-22.3/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ Set the default timeout interval for tests and before/after hooks in millisecond

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

_Note: The method must be called after the test framework is installed in the environment and before the test runs. A good place to do this is in the `setupTestFrameworkScriptFile`._

Example:

```js
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-22.4/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ Set the default timeout interval for tests and before/after hooks in millisecond

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

_Note: The method must be called after the test framework is installed in the environment and before the test runs. A good place to do this is in the `setupTestFrameworkScriptFile`._

Example:

```js
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-23.0/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ Set the default timeout interval for tests and before/after hooks in millisecond

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

_Note: The method must be called after the test framework is installed in the environment and before the test runs. A good place to do this is in the `setupTestFrameworkScriptFile`._

Example:

```js
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-23.1/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ Set the default timeout interval for tests and before/after hooks in millisecond

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

_Note: The method must be called after the test framework is installed in the environment and before the test runs. A good place to do this is in the `setupTestFrameworkScriptFile`._

Example:

```js
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-23.2/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ Set the default timeout interval for tests and before/after hooks in millisecond

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

_Note: The method must be called after the test framework is installed in the environment and before the test runs. A good place to do this is in the `setupTestFrameworkScriptFile`._

Example:

```js
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-23.3/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ Set the default timeout interval for tests and before/after hooks in millisecond

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

_Note: The method must be called after the test framework is installed in the environment and before the test runs. A good place to do this is in the `setupTestFrameworkScriptFile`._

Example:

```js
Expand Down

0 comments on commit 9093a3c

Please sign in to comment.