From f96498ba44fef93654534d2a35b0b7649d35f8b0 Mon Sep 17 00:00:00 2001 From: HichamELBSI Date: Fri, 25 Oct 2024 01:23:32 +0200 Subject: [PATCH] docs: readme example userevent import --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 4f0ff8233..ac32f38ed 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)