Optional: good to know Step 13 of 16 on the Full-Stack Developer roadmap

Frontend component tests

Tools such as Vitest with Testing Library check that components render and respond to clicks correctly. Test what users notice, not internal details.

More in Testing across the stack

See it on the Full-Stack Developer roadmap