Node Js - How to write unit test for functions which are completely db driven ??

Dhanush N - Sep 3 '20 - - Dev Community

I need to write test case using jest for a function which is completely db driven, business logics are also db driven. Can I use inmemory storage, or any other ideas ???

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player