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

Fixes 7099 - Better error messages when the jest environment is used after teardown by async code #7756

Conversation

olivierbeaulieu
Copy link
Contributor

@olivierbeaulieu olivierbeaulieu commented Jan 30, 2019

I fixed the issue 7099, following the directions provided by @SimenB.

Fixes #7099

Summary

It's a tweak to help people use existing functionality correctly, as described in the issue

Test plan

I added an integration test that validates the behaviour.

@codecov-io
Copy link

Codecov Report

Merging #7756 into master will decrease coverage by 0.03%.
The diff coverage is 5.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7756      +/-   ##
==========================================
- Coverage   68.39%   68.36%   -0.04%     
==========================================
  Files         252      252              
  Lines        9694     9700       +6     
  Branches        6        5       -1     
==========================================
+ Hits         6630     6631       +1     
- Misses       3062     3067       +5     
  Partials        2        2
Impacted Files Coverage Δ
packages/jest-runtime/src/index.js 73.42% <5.55%> (-1%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b0d7122...0e490b6. Read the comment docs.

Copy link
Collaborator

@thymikee thymikee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@SimenB SimenB merged commit adf2b3c into jestjs:master Jan 30, 2019
@olivierbeaulieu olivierbeaulieu deleted the fix-7099-better-error-message-after-teardown branch January 30, 2019 15:25
captain-yossarian pushed a commit to captain-yossarian/jest that referenced this pull request Jul 18, 2019
@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 12, 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.

Better error messages when the jest environment is used after teardown by async code
5 participants