docs: readme example userevent import (#1688)

This commit is contained in:
ELABBASSI Hicham
2024-10-25 08:52:40 +02:00
committed by GitHub
parent c56b223a5a
commit 8e1e6ac514
+1 -2
View File
@@ -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)