Working with Jest Mocks
In this project, we are working with the repository layer for an application called Book Club. This application allows users to do the following:
In addition to maintaining a list of books, the application also shows users a list of the current top 10 best-selling books.
It works great, or so we think. We can’t be sure because we don’t have our tests up and running yet. Using the repository code, we are going to flesh out our test suites and use our mocking skills in the process.
The project is subdivided into the following two groups of tasks:
createBook
FunctiongetBook
FunctiongetBooksByUser
FunctionupdateBook
FunctiondeleteBook
Function