DEV Community

loading...

Discussion on: Testing Svelte stores and mocking dependencies

jeffwscott profile image
Jeff Scott

Would I then import the JSDOM into svelte.js? helpers don't seem to be ES6 compatible so this is causing me some syntax errors.

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

Oh, of course. I should have thought of that. You’ll need to take that one function, create a new file with just that, and convert import -> require. I can try it myself tomorrow