building-apis-with-nodejs
building-apis-with-nodejs copied to clipboard
New Database not used for testing
Running npm test deletes all data from the .sqlite file even though the test config sets a different db from the development config.
It seems like the issue is with the params.storage in libs/config.test.js - the storage file name needs to be different from libs/config.development.js. A new issue is created from this where the tests seem to run before the database is done being set up so they fail the first time through.