Engrain by ByteRush

QLT.06 4 concepts

Testing

Write the right tests at the right level.

  1. QLT.06.01Testing strategyCoreMid-levelBeing written
  2. QLT.06.02Unit and component tests with Vitest and Testing LibraryCoreJuniorBeing written
  3. QLT.06.03End-to-end tests with PlaywrightCoreMid-levelBeing written
  4. QLT.06.04Visual, accessibility and contract testsMid-levelBeing written

Interview questions in this module

  1. How do you decide what to unit test vs e2e test?
  2. Why does Testing Library prefer getByRole?
  3. How do you test code that uses timers or fetch?
  4. How do you deal with flaky e2e tests?
  5. What makes a test brittle?