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

fix: convert unhandled rejection to uncaught exception (#235) #236

Merged
merged 2 commits into from
Aug 7, 2023

Conversation

killagu
Copy link
Contributor

@killagu killagu commented Aug 7, 2023

Mocha do not catch unhandled rejection by default. Case will faield until timeout. set --unhandled-rejections to strict, let case fail fast.

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@vercel
Copy link

vercel bot commented Aug 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
egg-bin ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2023 3:11am

@fengmk2
Copy link
Member

fengmk2 commented Aug 7, 2023

@killagu lint 修复一下就好了。

Copy link
Member

@fengmk2 fengmk2 left a comment

Choose a reason for hiding this comment

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

+1

Mocha do not catch unhandled rejection by default. Case
will faield until timeout. set `--unhandled-rejections`
to strict, let case fail fast.
@codecov
Copy link

codecov bot commented Aug 7, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (c4301c5) 100.00% compared to head (294619f) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##               5.x      #236   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           12        12           
  Lines           93        93           
  Branches        16        16           
=========================================
  Hits            93        93           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@killagu killagu merged commit e98e079 into 5.x Aug 7, 2023
10 checks passed
@killagu killagu deleted the backport/fix/unhandled-rejection branch August 7, 2023 03:25
fengmk2 pushed a commit that referenced this pull request Aug 7, 2023
[skip ci]

## [5.14.1](v5.14.0...v5.14.1) (2023-08-07)

### Bug Fixes

* convert unhandled rejection to uncaught exception ([#235](#235)) ([#236](#236)) ([e98e079](e98e079))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants