DEV Community

Discussion on: Testing NodeJs/Express API with Jest and Super test 🐧🐧

Collapse
 
mhmdlotfy96 profile image
muhammed Lotfy

Hey Aural
firstly, this is a a base article a bout how to use unit test.
and second one that what you did is just the post (or data) variable shared for creating and fetching steps not a big deal so far.
and last thing is to Mock your data "preparing step" then use it whatever you need
check this lib npmjs.com/package/given2

Collapse
 
aurelkurtula profile image
aurel kurtula

Thanks