DEV Community

loading...

Discussion on: How to write tests for a library that requires being run on the browser (like Dexie.js or localforage)?

Collapse
mykeels profile image
The Smith! 🛠

Have you tried mocking local storage? Mock-Local-Storage looks like the package you need.