Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 year ago

Tip Calculator App

react, typescript, vite, vitest, tailwind-css
SaakarX•320
@saakarx
A solution to the Tip calculator app challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I tried writing tests with Vitest and Testing Library for React. Just wrote 2 basic tests and they worked just fine.

What challenges did you encounter, and how did you overcome them?

Was stuck during the build, got an error message saying test key is not available in the vite.config.ts, after lot of googling went to ChatGPT it recommended to change the import of defaultConfig from vite to vitest/config. After changing still didn't worked, then I reinstalled the vite and vitest packages. And it worked just fine.

What specific areas of your project would you like help with?

Would love if someone could provide feedback on writing better tests, or how should I approach when writing tests. Right now, I can't wrap my head around which area should I test. ✌️

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on SaakarX'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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License