Utah
wife, 4 kids, & a dog
Kent C. Dodds
...with React Testing Library π
if you are able β€οΈ βΏοΈ
CONFIDENCE
The more your tests resemble the way your software is used, the more confidence they can give you.
Manual!!!
Well... not really...
Automation!
... that automates what the manual tester would do. Because:
The more your tests resemble the way your software is used, the more confidence they can give you.
οΏ heap
π°π€π°
ππ¨
π’
E2E Tests
Integration Tests
Unit Tests
*The pyramid is based on the assumption that broad-stack tests are expensive, slow, and brittle compared to more focused tests, such as unit tests. While this is usually true, there are exceptions. If my high level tests are fast, reliable, and cheap to modify - then lower-level tests aren't needed.
*martinfowler.com/bliki/TestPyramid.html
οΏ heap
π°π€π°
ππ¨
π’
Simple problems π€
Big problems π
jsdom
Jest
Enzyme
jsdom
Jest
Testing Library
render
fireEvent
waitForElementToBeRemoved
waitFor
userEvent
get, query, find...
Do what the user does