Skip to content

Preserve screen helpers in the custom query examples - #1602

Open
THEclaudi1 wants to merge 1 commit into
testing-library:mainfrom
THEclaudi1:docs/preserve-screen-helpers-1486
Open

THEclaudi1 wants to merge 1 commit into
testing-library:mainfrom
THEclaudi1:docs/preserve-screen-helpers-1486

Conversation

@THEclaudi1

Copy link
Copy Markdown

Fixes #1486.

Preserves screen.debug() and screen.logTestingPlaygroundURL() when composing a custom query set in the JavaScript and TypeScript examples. Thanks to the issue reporter for suggesting the spread approach.

Validation: Built the Docusaurus site and inspected both rendered examples. Checked the helpers, built-in and custom queries, and nested within behavior against React Testing Library 16.3.0. The TypeScript comparison found no new diagnostics relative to the unchanged examples.

Prepared with OpenAI Codex assistance.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Global custom query setup example breaks screen

1 participant