You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is too much bolierplate when bootstraping a unit test, as we are mocking every single storage agent. We can avoid this by mocking the prisma client and having it setup as a kind of in-memory database. Scope fo this one is to research https://github.com/demonsters/prisma-mock or any other prisma mocking library and, if suitable, implement a POC for a single set of unit tests (you can find candidates by searching for this issue id in the TODO comments)
ognjenkurtic
changed the title
Implement mocking of the Prisma client for unit testing purposes
SRI - Implement mocking of the Prisma client for unit testing purposes
Sep 10, 2023
Overview
Currently there is too much bolierplate when bootstraping a unit test, as we are mocking every single storage agent. We can avoid this by mocking the prisma client and having it setup as a kind of in-memory database. Scope fo this one is to research https://github.com/demonsters/prisma-mock or any other prisma mocking library and, if suitable, implement a POC for a single set of unit tests (you can find candidates by searching for this issue id in the TODO comments)
Reference
Questions
Acceptance
Tasks
The text was updated successfully, but these errors were encountered: