Mocha + Chai: how can I mock an internal db call on an e2e test?
I am new to Mocha + Chai. I wrote a few simple tests that calls my app routes and validates the responses and it works great for endpoints that do not have dependencies to other APIs or to a database.