Skip to content

Un-report react-test-renderer's findByType & findAllByType queries as async. #671

Closed as not planned
@Mrblackey

Description

@Mrblackey

What rule do you want to change?

await-async-query

Does this change cause the rule to produce more or fewer warnings?

Fewer warnings

How will the change be implemented?

Check that given node does not end with 'ByType'.

Example code

const elements = root.findAllByType('div')

How does the current rule affect the code?

promise returned from `findAllByType` query must be handled

How will the new rule affect the code?

This rule will not be applied if the query ends with 'ByType'.

Anything else?

No response

Do you want to submit a pull request to change the rule?

Yes

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesttriagePending to be triaged by a maintainer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions