DEV Community

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

Collapse
 
hugueschabot profile image
Hugues Chabot

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

karma-runner.github.io/latest/inde...

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