We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 59e0912 + 933ad38 commit badd3a9Copy full SHA for badd3a9
src/wait.ts
@@ -39,7 +39,7 @@ function resolveTimeout(val: TimeoutSpec): TestTimeout {
39
/**
40
* Wait for a condition to evaluate to a truthy value.
41
*
42
- * @return result of the `condition` function
+ * @return The result of the first call to `condition` which returns non-null
43
*/
44
export async function waitFor<T>(
45
condition: () => T,
0 commit comments