Saturday, February 27, 2021

TDD Typescript NestJS API Layers with Jest Part 3: Repository Unit Test

Context

This is a 3 part series for unit testing the controller, service, and repository layers in a typical REST architecture. There are many approaches to doing this, I'm sharing a pattern that I find very flexible and hopefully, you can pick up some tips and tricks along the way.

Part 1 — Unit Testing the Controller | Git branch can be found here.



from DZone.com Feed https://ift.tt/37UGfDR

No comments:

Post a Comment