Skip to content

Commit 1ef7a6b

Browse files
author
Stefanni Brasil
authored
Add screen to example
I was going through this example to understand a failure. I noticed that the import methods from the testing-library was missing the `screen`. Signed-off-by: Stefanni Brasil <stefannibrasil@gmail.com>
1 parent 3a92c8b commit 1ef7a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/prefer-screen-queries.md

Lines changed: 1 addition & 1 deletion
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)