Skip to the content

Part 14 of 25

Front-end testing and design

Two things separate a junior front-end candidate from a strong one: they can prove their UI works with tests, and they can design a front-end feature out loud before coding it. This part covers both. First, testing React components with Vitest and React Testing Library, mocking network requests with Mock Service Worker, and end-to-end tests with Playwright. Then a step-by-step method for front-end system design rounds, followed by three classic designs: autocomplete, infinite scroll and a data table. Every test in this part was actually run and passed with the current versions of the tools at the time of writing (Vitest 5, React Testing Library 16, MSW 3, Playwright 1.65; the Playwright tests were type-checked, since they need a running app).

Your progress

0%0 of 5 lessons complete

A lesson is complete when its quiz and all three practice levels are passed.

5 lessons in this part

  1. Lesson 184React Testing LibraryNot started
  2. Lesson 185Mocking fetch and the networkNot started
  3. Lesson 186End-to-end tests with PlaywrightNot started
  4. Lesson 187Front-end system design methodNot started
  5. Lesson 188Designs: autocomplete, infinite scroll, data tableNot started