Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Implement test #10

Open
teoh4770 opened this issue Apr 9, 2024 · 1 comment
Open

[Feature] Implement test #10

teoh4770 opened this issue Apr 9, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request p2 - Important not urgent and important

Comments

@teoh4770
Copy link
Owner

teoh4770 commented Apr 9, 2024

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 teoh4770 added enhancement New feature or request p2 - Important not urgent and important labels Apr 9, 2024
@teoh4770 teoh4770 self-assigned this Apr 25, 2024
@teoh4770
Copy link
Owner Author

teoh4770 commented Aug 23, 2024

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p2 - Important not urgent and important
Projects
None yet
Development

No branches or pull requests

1 participant