Skip to content

Commit 6198dbd

Browse files
authored
docs: fix example in prefer-screen-queries.md
Add missing import of "within" in example code. Signed-off-by: Daniel Rentz <[email protected]>
1 parent d4b9068 commit 6198dbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/prefer-screen-queries.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ getByText('foo');
3838
Examples of **correct** code for this rule:
3939

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

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

0 commit comments

Comments
 (0)