Next.Js testing
My background - I am a software engineer working as the lead frontend currently with 4 years of experience working on frontend applications using Next.js + TypeScript (currently)
My question is - I haven't done any frontend testing before at all (Only on our backend in python at work) What libraries would you recommend to use to test the frontend and what is your opinion on how much the test coverage should be? (>50%?, 80%? 100%?) Also any videos would be useful
I've looked into Jest, React Testing Library, and Vitest but wanted to hear from the community and what you guys prefer and if you have the time to give a few points on why.
Edit: What is typically tested? All components or only key components? Utility functions? At what point is it unnecessary to test?
My question is - I haven't done any frontend testing before at all (Only on our backend in python at work) What libraries would you recommend to use to test the frontend and what is your opinion on how much the test coverage should be? (>50%?, 80%? 100%?) Also any videos would be useful
I've looked into Jest, React Testing Library, and Vitest but wanted to hear from the community and what you guys prefer and if you have the time to give a few points on why.
Edit: What is typically tested? All components or only key components? Utility functions? At what point is it unnecessary to test?