Skip to content

feat(prefer-find-by): report waitFor with presence matchers #420

Closed

Description

@zaicevas

Originally mentioned in #411 (comment)

prefer-find-by could report presence matchers (.toBeInTheDocument(), toBeDefined(), etc) that are used in conjunction with RTL queries. Currently, prefer-find-by does not report such cases:

    await waitFor(() => screen.getByText('button')) // reported
    await waitFor(() => expect(screen.getByText('button')).toBeInTheDocument()) // not reported

Activity

  1. added
    enhancement
    on Jul 19, 2021
  2. changed the title [-]Extend `prefer-find-by` to report `waitFor` with presence matchers[/-] [+]feat(prefer-find-by): report `waitFor` with presence matchers[/+] on Jul 19, 2021
  3. added a commit that references this issue on Aug 24, 2021
    94758f1
  4. github-actions commented on Aug 24, 2021

    @github-actions

    🎉 This issue has been resolved in version 4.12.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions