Closed Chamion closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 96.31%. Comparing base (
93a6ab9
) to head (7837d4f
). Report is 5 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@all-contributors please add @Chamion for code, test
@Belco90
I've put up a pull request to add @Chamion! :tada:
:tada: This PR is included in version 6.2.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Checks
Changes
The circuit-breaker checking for
userEvent.setup()
was executed afterdetectEventMethodWrapper
so the circuit-breaking only applied to cases where the expression is not returned. It's intended to be applied generally so this PR moves it to the top of its code block.Context
My last contribution was received well so I picked another open issue.
Fixes #881
This is another false-positive where the root problem is defaulting to report unless a reason not to report is found. If new methods are introduced to
userEvent
the rule will assume they return promises. I'd like to change the behaviour to check for an allow-list of method names instead of checking it's not specificallysetup
so future bugs would be false negatives instead of false positives. I didn't do that in this PR because maybe it's the way it is by design.