mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
chore: bump Flow and ESLint preset (#241)
* chore: bump Flow and ESLint preset * fix name of waitForElement
This commit is contained in:
committed by
Kacper Wiszczuk
parent
4c77f4a7dc
commit
94ff42527e
+2
-2
@@ -318,14 +318,14 @@ expect(onEndReached).toHaveBeenCalled();
|
||||
Defined as:
|
||||
|
||||
```jsx
|
||||
function waitForExpect<T: *>(
|
||||
function waitForElement<T>(
|
||||
expectation: () => T,
|
||||
timeout: number = 4500,
|
||||
interval: number = 50
|
||||
): Promise<T> {}
|
||||
```
|
||||
|
||||
Waits for non-deterministic periods of time until your element appears or times out. `waitForExpect` periodically calls `expectation` every `interval` milliseconds to determine whether the element appeared or not.
|
||||
Waits for non-deterministic periods of time until your element appears or times out. `waitForElement` periodically calls `expectation` every `interval` milliseconds to determine whether the element appeared or not.
|
||||
|
||||
```jsx
|
||||
import { render, waitForElement } from 'react-testing-library';
|
||||
|
||||
Reference in New Issue
Block a user