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

Update Timeout error message to jest.timeout and display current timeout value #4990

Merged
merged 3 commits into from
Nov 30, 2017

Conversation

dylang
Copy link
Contributor

@dylang dylang commented Nov 30, 2017

Summary

Current timeout message

Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.

  • Using old jasmine.DEFAULT_TIMEOUT_INTERVAL api.
  • Does not say how long the timeout is.

New timeout message

Timeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout.

Improved developer usability and understanding.

  • Updated API method jest.setTimeout.
  • Shows the value of timeout used.

Test plan

Updated test in queue_runner.

@dylang
Copy link
Contributor Author

dylang commented Nov 30, 2017

I signed the CLA before publishing this PR.

@SimenB
Copy link
Member

SimenB commented Nov 30, 2017

This is falling CI, seems like some integration tests assert on the error message

@cpojer cpojer merged commit 08f8394 into jestjs:master Nov 30, 2017
@cpojer
Copy link
Member

cpojer commented Nov 30, 2017

Thanks for sending this PR!

mjesun added a commit that referenced this pull request Dec 4, 2017
mjesun added a commit that referenced this pull request Dec 4, 2017
cpojer pushed a commit that referenced this pull request Dec 4, 2017
* Revert "docs: update expect.anything() example (#5007)"

This reverts commit ea3fabc.

* Revert "Emphasise required return (#4999)"

This reverts commit 4f1113c.

* Revert "Makes NPM a link like Yarn is (#4998)"

This reverts commit aa4f09d.

* Revert "Update Timeout error message to `jest.timeout` and display current timeout value (#4990)"

This reverts commit 08f8394.

* Revert "fix: jest-util should not depend on jest-mock (#4992)"

This reverts commit 4e2f41f.

* Revert "Update Troubleshooting.md (#4988)"

This reverts commit 6414f28.

* Revert "Revert "Add the Yammer logo to the 'who is using this' section of the website." (#4987)"

This reverts commit 91b104f.

* Revert "Make "weak" optional dependency and check it at runtime (#4984)"

This reverts commit e00529d.

* Revert "Re-inject native Node modules (#4970)"

This reverts commit ef55e89.
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants