Forcing in memory db for testing causes problems
Issue is here: https://gitlab.coko.foundation/pubsweet/pubsweet-server/blob/master/src/db.js#L13.
I need to test the filesystem db in db-manager
, so this should be removed. However, that means exposing PouchDB so users can configure their own adapter and making numerous changes elsewhere to do so.
As a temporary hack, I will test with 'production' NODE_ENV.
Thoughts on what should be done in the longer term?