Mockingoose will not simulate a failure to create a new object in Unit Test
I have a project connected to MongoDB. I am attempting to write a post method for adding a new book to the database. I’m using Jest, Mongoose, and Mockingoose.
I have a project connected to MongoDB. I am attempting to write a post method for adding a new book to the database. I’m using Jest, Mongoose, and Mockingoose.