DEV Community

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
Backlog Slayer

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