Next.js Discord

Discord Forum

Do I need Unit testing if I use Cypress?

Unanswered
Little fire ant posted this in #help-forum
Open in Discord
Little fire antOP
I am new to testing. I was wondering, do we need Unit testing (Let's say with Jest) if we use Cypress for E2E and Component testing? When I have started writing test codes for a signin page, I see that the validation codes are same in unit test and cypress code. So, if cypress handles the unit test part, then should I add unit testing too? I am not actually finding the difference/importance of separate unit testing here. Can you explain this?

0 Replies