building-apis-with-nodejs icon indicating copy to clipboard operation
building-apis-with-nodejs copied to clipboard

New Database not used for testing

Open dtedwards opened this issue 2 years ago • 1 comments

Running npm test deletes all data from the .sqlite file even though the test config sets a different db from the development config.

dtedwards avatar Apr 27 '23 00:04 dtedwards

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.

dtedwards avatar Apr 27 '23 02:04 dtedwards