Skip to content

Commit 9bb213e

Browse files
author
pierrezimmermann
committed
docs: update migration guide to mention updating version of jest native
1 parent 42c271a commit 9bb213e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

website/docs/MigrationV12.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ Historically `container` was supposed to mimic the [RTL's container](https://tes
5656

5757
RNTL v12 introduces `root` API as an alternative that returns a root **host** element. The difference between `root` and `UNSAFE_root` properties is that that `root` will always represents a host element, while `UNSAFE_root` will typically represent a composite element.
5858

59+
If you use `toBeOnTheScreen` matcher from [@testing-library/jest-native][https://github.com/testing-library/jest-native] your tests will fail because it uses the `container` api. To fix this, update `@testing-library/jest-native` to version 5.4.2.
60+
5961
# Full Changelog
6062
https://github.com/callstack/react-native-testing-library/compare/v11.5.2...v11.5.2...v12.0.0-rc.0
6163

0 commit comments

Comments
 (0)