Skip to content

getAllBy* matchers? #27

@alexkrolick

Description

@alexkrolick
  • dom-testing-library version: 2.1.1

It looks like all the matchers are designed to return the first element matching a query. Would it make sense to also export matchers that return all of the matching nodes as well (e.g., document.querySelectorAll vs document.querySelector)? Some use cases are testing the length or sort order of lists, handling pagination, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions