-
-
Notifications
You must be signed in to change notification settings - Fork 654
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(combine): halt middleware evaluation if error in next()
#3905
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3905 +/- ##
=======================================
Coverage 91.27% 91.28%
=======================================
Files 168 168
Lines 10750 10757 +7
Branches 3164 3165 +1
=======================================
+ Hits 9812 9819 +7
Misses 937 937
Partials 1 1 ☔ View full report in Codecov by Sentry. |
Hi @satoshun00! The test code was used in the following commit. I wonder if this will fix the problem. |
…rows an error with returning truthy value middleware
@usualoma One small point—since |
Hi @satoshun00
|
@yusukebe |
continue | ||
if (isNextCalled) { | ||
break | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these lines #L61 - L62
are covered, though Codecov says they are not covered. Should you add more tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
continue | ||
if (isNextCalled) { | ||
break | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see!
@usualoma Thank you for the quick fix! @satoshun00 Thank you for raising the issue! |
fixes #3898
The author should do the following, if applicable
bun run format:fix && bun run lint:fix
to format the code