Skip to content

The ESLint rule testing-library/prefer-query-by-disappearance is not working for testin-library-selector #8

@roger-cobalt

Description

@roger-cobalt
  • I'm submitting a ...
    [x] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    The ESLint rule testing-library/prefer-query-by-disappearance is not working when using testing-library-selector (could also be seen as feature request instead of bug report). Would be great to have a way to get it working or have a similar rule. There might be more rules the same applies to, but did not check.

  • Other information
    For example await waitForElementToBeRemoved(byText('Loading content...').get()) is not noticed by ESLint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions