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...
bentilling.com4 min read
No responses yet.