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


Karma is a test runner that execute tests in a browser. It supports mocha and chai.

I recommend to use mocks if you can but this tool can help if you can't or want to do e2e tests

code of conduct - report abuse