DEV Community


Discussion on: Testing Svelte stores and mocking dependencies

jeffwscott profile image
Jeff Scott

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.

Thread Thread
d_ir profile image
Daniel Irvine 🏳️‍🌈 Author

Jasmine has spies - jasmine.createSpy

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

Forem Open with the Forem app