Skip to content

testing-library/prefer-screen-queries with self-written helpers #340

@pustovalov

Description

@pustovalov

Hey

expect(await findByComplexText(screen, 'Selected campaigns 0')).toBeInTheDocument() 

eslint-plugin-testing-library@3.10.2 - no errors

eslint-plugin-testing-library@4.0.1 - Avoid destructuring queries from render result, use screen.findByComplexText instead testing-library/prefer-screen-queries

should this rule only apply to testing-library methods?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreleased

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions