apache / couchdb-nano

Nano: The official Apache CouchDB library for Node.js
https://www.npmjs.com/package/nano
Apache License 2.0
651 stars 165 forks source link

How to set unit tests using in-memory database for couchdb-nano #305

Open alexmathew98 opened 1 year ago

alexmathew98 commented 1 year ago

Looking to implement unit test coverage for nanodb functionalities for my application (with a nodejs server and couch DB) .Been doing a transition from pouchdb to nano.For the case of pouch db its possible to use 'pouchdb-adapter-memory'(Refer https://pouchdb.com/adapters.html).I was wondering if its possible to do something similar for nano where i can do unit tests but with an in memory database.Any tips/suggestions would be greatly appreciated!