You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/prefer-screen-queries.md
+4-12
Original file line number
Diff line number
Diff line change
@@ -2,30 +2,26 @@
2
2
3
3
## Rule Details
4
4
5
-
DOM Testing Library (and other Testing Library frameworks built on top of it) exports a `screen` object which has every query (plus the `container`and a `debug` method). This works better with autocomplete and makes each test a little simpler to write and maintain.
5
+
DOM Testing Library (and other Testing Library frameworks built on top of it) exports a `screen` object which has every query (and a `debug` method). This works better with autocomplete and makes each test a little simpler to write and maintain.
6
6
This rule aims to force writing tests using queries directly from `screen` object rather than destructuring them from `render` result.
0 commit comments