Basically it gets an array of id's and calls the database and fetches those entities.
~10 lines of Javascript code.
40 lines of SQL. Which also depends on the state of the database.
So what do I gain by mocking the database? Making sure those 10 lines of javascript work fine? In a vacuum? They are the 10 easy lines anyways which are covered by my E2E test.
What matters is the SQL and how it behaves in different states of the database.
Basically it gets an array of id's and calls the database and fetches those entities.
~10 lines of Javascript code.
40 lines of SQL. Which also depends on the state of the database.
So what do I gain by mocking the database? Making sure those 10 lines of javascript work fine? In a vacuum? They are the 10 easy lines anyways which are covered by my E2E test.
What matters is the SQL and how it behaves in different states of the database.