Skip to content

Commit a9c4530

Browse files
author
Stefanni Brasil
committed
docs: Add render to "Suggest using screen while querying" doc [ci-skip]
I was going through this example to understand a failure. I noticed that theimport methods from the testing-library were missing `render`.
1 parent 3a92c8b commit a9c4530

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)