diff --git a/README.md b/README.md index 4f0ff823..ac32f38e 100644 --- a/README.md +++ b/README.md @@ -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)