Skip to content
FrontDepth, Home

All tracks

08 · Track

Testing

Unit, integration and end-to-end tests: what to test, when, and how.

Topics · 6

  1. 01

    What tests are for and at which level to write them: unit, integration and end-to-end tests and what each costs, the test pyramid and the testing trophy, testing behaviour instead of implementation details, what to leave untested, what code coverage measures, and regression tests in CI and code review.

    JuniorMiddleSenior· 14 questions
  2. 02

    Writing unit tests with Vitest: test and describe, equality matchers, errors and promises, making code testable with pure functions and injected dependencies, the five kinds of test doubles, vi.fn and vi.spyOn and how to restore them, test isolation, over-mocking and the limits of snapshot tests.

    JuniorMiddleSenior· 14 questions· Requires: What to test, and at which level
  3. 03

    How to test components the way people use them: Testing Library's guiding principle and query priority, getBy, queryBy and findBy, user-event instead of fireEvent, jest-dom assertions on what users perceive, a form example, what jsdom cannot show, and tests that break for the wrong reasons.

    JuniorMiddleSenior· 13 questions· Requires: What to test, and at which level, ARIA, accessible names and focus management
  4. 04

    How to test async code without false passes or random failures: awaiting everything, findBy and waitFor, what the act() warning means, Vitest fake timers and their async variants, why tests flake (timing, shared state, order, network, randomness, time zones) and how to find and fix them instead of retrying.

    JuniorMiddleSenior· 15 questions· Requires: Testing UI the way users use it, Promises and async/await, Event Loop
  5. 05

    How to fake the network and modules without ending up testing your mocks: choosing the seam, Mock Service Worker handlers and per-test overrides for loading and error states, the cost of stubbing fetch, vi.mock hoisting and partial mocks, ES module limits on spying, and contract drift.

    MiddleSenior· 14 questions· Requires: Unit tests and test doubles, ES modules, Promises and async/await
  6. 06

    What an end-to-end test proves and what it costs, and how to write Playwright tests that stay reliable: user-facing locators, auto-waiting and web-first assertions, isolated contexts and fixtures, signing in once with storageState, page.route, projects and CI, and debugging with traces.

    JuniorMiddleSenior· 14 questions· Requires: What to test, and at which level, Testing UI the way users use it