Tag: mongodb-memory-server

Screenshot showing unit tests for Mongoose using the Mocha testing framework and the Chai Assertion Library

Writing unit tests for MongoDB and Mongoose

Over the past couple of days, I have been working to complete freeCodeCamp’s issue tracker project. I’m using MongoDB as the database and relying on Mongoose to model the data. Since I have been learning about testing lately, I wanted to write unit tests for the simple wrapper I wrote around Mongoose to add, update and remove issues to the database.

Read the full post