From dc854a9717de0e1d6afeec26debe489434efb612 Mon Sep 17 00:00:00 2001 From: Nathan Loudjani Date: Tue, 30 Jun 2020 16:54:17 +0200 Subject: [PATCH] docs: Fix typo in migration doc (#411) --- website/docs/MigrationV2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/MigrationV2.md b/website/docs/MigrationV2.md index cad36029..84acf2a0 100644 --- a/website/docs/MigrationV2.md +++ b/website/docs/MigrationV2.md @@ -105,7 +105,7 @@ The `*ByType` and `*ByProps` queries has been prefixed with `UNSAFE_`. These `UN ## Some `ByTestId` queries behavior changes -In version `1.x` the `getByTestId` and `queryByTestId` queries could return non-native tinstances. This was a serious bug. Other query functions like `getAllByTestId`, `queryAllByTestId`, `findByTestId` and `findAllByTestId` didn't have this issue. These correctly returned only native components instances (e.g. `View`, `Text`, etc) that got the `testID`. +In version `1.x` the `getByTestId` and `queryByTestId` queries could return non-native instances. This was a serious bug. Other query functions like `getAllByTestId`, `queryAllByTestId`, `findByTestId` and `findAllByTestId` didn't have this issue. These correctly returned only native components instances (e.g. `View`, `Text`, etc) that got the `testID`. In v2 we fixed this inconsistency, which may result in failing tests, if you relied on this behavior. There are few ways to handle these failures: