4 ms·
I also don't see the point in mocking out your database unless you have slow tests due to hardware constraints, a huge project or your db tests not being parall
by puika 3y ago
I also don't see the point in mocking out your database unless you have slow tests due to hardware constraints, a huge project or your db tests not being parallelized. Regarding the latter I've had much success with a similar approach to [1], and with a few helpers in each layer (service-repo) my tests have never been cleaner.
[1]: https://kevin.burke.dev/kevin/fast-parallel-database-tests https://kevin.burke.dev/kevin/fast-parallel-database-tests