All jobs / Full-stack developer / Testing

Full-stack developer interview question · 0–1 years

You built a feature that touches a React screen and two API endpoints. Which tests do you write, and where?

The strongest answer

Most of it in fast unit tests on both halves, a smaller layer of integration tests around the API and the database, and one or two end-to-end tests for the journey that must never break

Why it works

Right — many cheap tests, few slow ones, and the slow ones reserved for the journeys you cannot afford to break.

What a good answer covers

Answers that fall short

Who gets asked this

More Testing questions