Quantcast
Viewing all articles
Browse latest Browse all 7

Answer by Uri for Mocking database in node.js?

I had this dilemma and chosen to work with a test DB and clean it every time the test begins. (how to drop everything: https://stackoverflow.com/a/25639377/378594)

With NPM you can even make a test script that creates the db file and cleans it up after.


Viewing all articles
Browse latest Browse all 7

Trending Articles