~/talk

Designing Effective Tests with React Testing Library

watch on portal.gitnation.org ↗https://portal.gitnation.org/contents/designing-effective-tests-with-react-testing-library
Talkat React Day Berlin 2022 · 2022-12-02· [testing, react]

Covers using React Testing Library to write effective tests by focusing on the UI contract and rendered output, using the Screen API for assertions, choosing appropriate query methods, and confirming presence/absence of elements. Explains testing environment concerns including accessibility, how to test external functions and mock functions, organize tests and effects, handle asynchronous code and mock web service requests, and discusses benefits of test-driven development.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.