Testing Library Meets React Native
summary
A thin layer on top of react-test-renderer becomes a concrete React Native testing library that supports deep rendering, Jest, msw mocks, fireEvent and accessibility queries; it fixes a bug where getByTestId returned non-native instances, auto-wraps async findBy queries in act, and removed shallow rendering to discourage implementation testing. Two nearly identical libraries appear, thousands of users adopt one within six months, and after API alignment and a v2 migration strategy the projects consolidate into @testing-library/react-native and continue maintained.
AI-written summary · about
chapters (11)
- 0:00Start
- 7:14Imports
- 7:31Mocks
- 7:52Tests
- 13:34Jest's "testEnvironment"
- 16:12Early APIs render
- 18:30License
- 20:51Why was it created?
- 21:33Negotiations
- 24:52RNTL v2
- 29:24Migration guides
related talks
30mTesting Library: everybody uses it, but nobody understands it
24mUsing React Testing Library to Write Stronger Tests
16mJest Testing Library with Ariane Jurado de Bilbao
53mTesting React Applications
15mDiscovering Testing Library for React
22mElizabeth Funk - An Introduction to React Testing Library
30mTesting & React Native"Lessons from the Battlefield"
25mReact developers in a wild world of native apps
