Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit 80711e2

Browse files
author
Stefanni Brasil
authored
docs: add missing import (testing-library#863)
1 parent 3a92c8b commit 80711e2

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 { screen } from '@testing-library/any-framework';
41+
import { render, screen } from '@testing-library/any-framework';
4242

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

0 commit comments

Comments
 (0)