Tip calculator app (React, Vite, Vitest, Typescript, Tailwind)

Solution retrospective
I added unit tests and integration tests that helped me avoid breaking parts that were already working as I made changes and refactorings.
Maybe I would follow the TDD approach for testing because when I add tests after the components are already created, I end up writing tests that I already know will pass and I forget to test scenarios that shouldn’t pass.
What challenges did you encounter, and how did you overcome them?When using Redux with TypeScript, I didn’t know how to get and match the types I expected in the store. Fortunately, Redux has documentation to cover this scenario (https://redux-toolkit.js.org/usage/usage-with-typescript).
What specific areas of your project would you like help with?Any advice regarding the implementation of testing is welcome.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Javier Eufracio's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord