Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: correct error handling in processAsync #4226

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

SimenB
Copy link
Contributor

@SimenB SimenB commented Nov 26, 2023

Summary

Fixes #4207

Test plan

Copied the changed code into the repo from jestjs/jest#14719 and verified the error is correctly displayed.

I don't have time to write an actual unit test for this, so if that's needed to merge that contribution will have to come from somebody else 😅

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Ignore whitespace when looking at the diff: https://github.com/kulshekhar/ts-jest/pull/4226/files?w=1

Also, should enable: https://eslint.org/docs/latest/rules/no-async-promise-executor

@SimenB
Copy link
Contributor Author

SimenB commented Nov 26, 2023

/cc @ahnpnl would be nice to get this out in v29.

Also, the failing test on CI fails on main for me

@ahnpnl
Copy link
Collaborator

ahnpnl commented Nov 28, 2023

LGTM though not sure why e2e test failed. The e2e setup is similar to Jest e2e btw. Maybe you can take a look?

@ahnpnl
Copy link
Collaborator

ahnpnl commented Nov 28, 2023

Hmm other PRs have the same issue with the tests. I will try to check

@ahnpnl ahnpnl force-pushed the handle-errors-in-process-async branch from f2d9ad3 to 2ebf2c1 Compare January 19, 2024 10:09
@coveralls
Copy link

Pull Request Test Coverage Report for Build 7582336836

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on handle-errors-in-process-async at 96.033%

Totals Coverage Status
Change from base Build 7019697661: 96.0%
Covered Lines: 4053
Relevant Lines: 4152

💛 - Coveralls

@ahnpnl ahnpnl merged commit e7be4bf into kulshekhar:main Jan 19, 2024
17 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: ts-jest silently hangs up with certain moduleResolution options
3 participants