Beyond React Testing Library: Testing React Libraries (and library-like code)
watch on portal.gitnation.org ↗https://portal.gitnation.org/contents/beyond-react-testing-library-testing-react-libraries-and-library-like-code-2425summary
Covers limitations of Testing Library for library code and explains how Apollo Client uses the React Profiler to produce a stream of render events for stream-based testing of render counts, order of DOM changes, Suspense behavior (including suspended vs committed renders), and rerender detection. Describes a released library implementing this approach and also addresses testing library code across environments—React Server Components, streaming SSR, and the Browser—including verifying exports fields and rendering components in isolation for those targets.
AI-written summary · about
related talks
24mUsing React Testing Library to Write Stronger Tests
30mTesting Library: everybody uses it, but nobody understands it
32mTesting Library Meets React Native
22mElizabeth Funk - An Introduction to React Testing Library
25mTesting React
53mTesting React Applications
15mDiscovering Testing Library for React
32mCrafting a Bulletproof testing pipeline for React Apps