Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] add note explaining when jest.setTimeout should be called #6817

Merged
merged 2 commits into from
Aug 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
- `[jest-cli]` Fix `testMatch` not working with negations ([#6648](https://github.com/facebook/jest/pull/6648))
- `[jest-cli]` Don't report promises as open handles ([#6716](https://github.com/facebook/jest/pull/6716))

### 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