Skip to content

Commit

Permalink
docs: fix example in prefer-screen-queries.md
Browse files Browse the repository at this point in the history
Add missing import of "within" in example code.

Signed-off-by: Daniel Rentz <danielrentz@users.noreply.github.com>
  • Loading branch information
danielrentz authored Mar 3, 2025
1 parent d4b9068 commit 6198dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/prefer-screen-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ getByText('foo');
Examples of **correct** code for this rule:

```js
import { render, screen } from '@testing-library/any-framework';
import { render, screen, within } from '@testing-library/any-framework';

// calling a query from the `screen` object
render(<Component />);
Expand Down

0 comments on commit 6198dbd

Please sign in to comment.