I'm using Svelte stores in this post as an example, but the principle applies to any function or variable you want to mock with vitest, with any js framework. Imagine this... You've just refactored some complex code into a killer custom Svelte store...
5 followers
Former software engineer and product manager at Expedia. Now focusing on creating my own products and sharing the learnings with the dev world!