This is not an altogether unreasonable approach . . . to acceptance testing.
Unit Testing Express Middleware Behavior in ECMAScript 2015
Morris Singer
1294

Morris Singer this is exactly how I setup my integration tests but by using request(app) it necessarily makes calls to the database. How would you mock the database in this kind of integration test? I have played around with mockgoose and I understand how to use it in a unit test, but how can I use it in the kind of integration test you describe here?

Like what you read? Give Philippe Vaillancourt a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.