The frontend test pyramid
The frontend test pyramid is the same idea as the backend one, just with different layers. Unit tests for pure functions at the bottom. Component tests for React components in the middle. End-to-end tests through a real browser at the top. The right ratio is lots of the first, some of the middle, and a few of the top.
The three test layers
Fast and many at the bottom. Slow and few at the top.
Quiz: Quiz
Loading practice…