diff --git a/content/docs/reference-test-renderer.md b/content/docs/reference-test-renderer.md index 75f75f01..9e463400 100644 --- a/content/docs/reference-test-renderer.md +++ b/content/docs/reference-test-renderer.md @@ -158,7 +158,7 @@ Returns the root "test instance" object that is useful for making assertions abo testInstance.find(test) ``` -Find the first descendant test instance for which `test(testInstance)` returns `true`. +Find the only 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. ### `testInstance.findByType()` @@ -166,7 +166,7 @@ Find the first descendant test instance for which `test(testInstance)` returns ` testInstance.findByType(type) ``` -Find the first descendant test instance with the provided `type`. +Find the only descendant test instance with the provided `type`. If there is not exactly one test instance with the provided `type`, it will throw an error. ### `testInstance.findByProps()` @@ -174,7 +174,7 @@ Find the first descendant test instance with the provided `type`. testInstance.findByProps(props) ``` -Find the first descendant test instance with the provided `props`. +Find the only descendant test instance with the provided `props`. If there is not exactly one test instance with the provided `props`, it will throw an error. ### `testInstance.findAll()`