Skip to content

Commit 46480ff

Browse files
committed
chore: add comment
1 parent 22e1dfa commit 46480ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/rules/prefer-find-by.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
376376
}
377377
const queryIdentifier = getDeepestIdentifierNode(init.callee);
378378

379+
// ensure the query is a supported async query like findBy*
379380
if (!queryIdentifier || !helpers.isAsyncQuery(queryIdentifier)) {
380381
return;
381382
}

0 commit comments

Comments
 (0)