teoh4770 / pomotama

A Pomofocus clone with React and TypeScript. For personal usage + learning purposes (not in production!).
https://pomotama.netlify.app/
MIT License
10 stars 3 forks source link

[Feature] Implement test #10

Open teoh4770 opened 6 months ago

teoh4770 commented 6 months ago

Implementing test on the component level and page level. Will add a list of things that need to test later on.

-> BDD https://en.wikipedia.org/wiki/Behavior-driven_development

teoh4770 commented 1 month ago

How to test local storage -> config: JSDOM -> able to use the browser api like localStorage -> able to listen to the method call

source: https://runthatline.com/vitest-mock-localstorage/