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: content/docs/reference-test-renderer.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -158,23 +158,23 @@ Returns the root "test instance" object that is useful for making assertions abo
158
158
testInstance.find(test)
159
159
```
160
160
161
-
Find the first descendant test instance for which `test(testInstance)` returns `true`.
161
+
Find a single descendant test instance for which `test(testInstance)` returns `true`. If `test(testInstance)` does not return `true` for exactly one test instance, it will throw an error.
162
162
163
163
### `testInstance.findByType()`
164
164
165
165
```javascript
166
166
testInstance.findByType(type)
167
167
```
168
168
169
-
Find the first descendant test instance with the provided `type`.
169
+
Find a single descendant test instance with the provided `type`. If there is not exactly one test instance with the provided `type`, it will throw an error.
170
170
171
171
### `testInstance.findByProps()`
172
172
173
173
```javascript
174
174
testInstance.findByProps(props)
175
175
```
176
176
177
-
Find the first descendant test instance with the provided `props`.
177
+
Find a single descendant test instance with the provided `props`. If there is not exactly one test instance with the provided `props`, it will throw an error.
0 commit comments