-
Notifications
You must be signed in to change notification settings - Fork 149
fix(await-async-queries): false positive with optional chaining #1009
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
base: main
Are you sure you want to change the base?
fix(await-async-queries): false positive with optional chaining #1009
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1009 +/- ##
==========================================
+ Coverage 96.27% 96.29% +0.01%
==========================================
Files 46 47 +1
Lines 2472 2483 +11
Branches 1025 1026 +1
==========================================
+ Hits 2380 2391 +11
Misses 92 92 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
await-async-queries
has false positive with optional chaining@@ -93,6 +93,9 @@ ruleTester.run(RULE_NAME, rule, { | |||
// async screen queries declaration are valid | |||
...createTestCase((query) => `await screen.${query}('foo')`), | |||
|
|||
// async queries with optional chaining are valid |
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.
suggestion(blocking): This is nice, but please add also another test for the exact scenario reported in #882 description.
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.
Done
…t-async-queries-optional-chaining
Closes #882