DEV Community

Discussion on: Need help with code review 😕

Collapse
 
baasmurdo profile image
BaasMurdo

This might not be an entire / complete list.
But a good start I would say is implementing Unit tests, then Integration tests.
An important part I find with these, is not just testing a happy path.
For instance if you have just a phone number input on a form.
Yes it should be tested to work on a happy path first, but then the opposite.
Does it take letters, can it be pasted into and submitted, can / should it be skipped, clicked submit multiple times instead of just once, is it the correct type (opens correct keyboard on touch devices), have the correct accessibility tags and so on.

Most issues I see and find in my code and others are not on the happy path.