Skip to content

Dependency on @testing-library/dom #294

@eps1lon

Description

@eps1lon

It's not apparent from the documentation why this plugin has a dependency on @testing-library/dom.

It looks like it does some branching based on whether a query is a DTL query or not but I can't find documentation how this affects rules in this repo.

This would help asses if we need a direct runtime dependency (current) or peer dependency or configuration option instead i.e. instead of requiring DTL and getting the list of queries, the user inputs that list.

Documenting this internal behavior would help to understand if custom queries should also be considered.

Ideally there wouldn't be a dependency on /dom at all so that users just have to update /dom if that releases a major and not update /dom and eslint-plugin-jest-dom. jest-dom doesn't have a dependency on /dom after all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions