mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
docs: readme example userevent import (#1688)
This commit is contained in:
@@ -53,7 +53,7 @@ import '@testing-library/react-native/extend-expect';
|
||||
## Example
|
||||
|
||||
```jsx
|
||||
import { render, screen, fireEvent } from '@testing-library/react-native';
|
||||
import { render, screen, userEvent } from '@testing-library/react-native';
|
||||
import { QuestionsBoard } from '../QuestionsBoard';
|
||||
|
||||
// It is recommended to use userEvent with fake timers
|
||||
@@ -109,7 +109,6 @@ React Native Testing Library consists of following APIs:
|
||||
- [Migration to 12.0](https://callstack.github.io/react-native-testing-library/docs/migration/v12)
|
||||
- [Migration to built-in Jest Matchers](https://callstack.github.io/react-native-testing-library/docs/migration/jest-matchers)
|
||||
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
- [Troubleshooting guide](https://callstack.github.io/react-native-testing-library/docs/guides/troubleshooting)
|
||||
|
||||
Reference in New Issue
Block a user