Skip to content

Commit

Permalink
docs: readme example userevent import (#1688)
Browse files Browse the repository at this point in the history
  • Loading branch information
HichamELBSI authored Oct 25, 2024
1 parent c56b223 commit 8e1e6ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8e1e6ac

Please sign in to comment.