I've been trying to take a TDD approach to building up a side project using mocha and chai, but I've been hitting a wall lately. I want to use localforage, but I can't seem to write automated tests that run and interact with localforage since it requires being run on a browser. I want to wrap a library and write tests to cover the class that I created. Is there a way to do this?
Classic DEV Post from Dec 10 '18