Skip to content

docs: clarify scoped queries in prefer-screen-queries#1342

Open
SSDWGG wants to merge 1 commit into
testing-library:mainfrom
SSDWGG:docs/prefer-screen-scoped-queries
Open

docs: clarify scoped queries in prefer-screen-queries#1342
SSDWGG wants to merge 1 commit into
testing-library:mainfrom
SSDWGG:docs/prefer-screen-scoped-queries

Conversation

@SSDWGG

@SSDWGG SSDWGG commented Jun 13, 2026

Copy link
Copy Markdown

Summary

Clarifies that callers should use within(subtree) for scoped queries instead of importing a top-level Testing Library query and passing the subtree as the first argument.

Closes #366.

Testing

Not run; documentation-only change.

@MichaelDeBoey MichaelDeBoey added the documentation Improvements or additions to documentation label Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False positive for testing-library/prefer-screen-queries

2 participants