Skip to content
loading...

re: Testing Svelte stores and mocking dependencies VIEW POST

TOP OF THREAD FULL DISCUSSION
re: What version of JSDOM are you using? The latest version has an implementation of localStorage ready to go, I think. You can also use spies but I w...
 

So now I need to learn Jest or does Jasmine have spies, also I guess I need to find out what spies are lol.

I'm using whatever JSDOM you had in your dependency tree. I copied them out.

Jasmine has spies - jasmine.createSpy

I’ll see if I can port across the local storage tests to Svelte a little later today.

code of conduct - report abuse