First of all, thanks Dev.to! This is an amazing community and I'm glad to contribute a bit with my first article.
Recently in my company we are migrating our monolithic Meteor application into a Microservices architecture. Our services are mostly express apps and I'm trying to encourage testing since the beginning, with a focus now on integration testing. My approach is to use
supertest to test the API surface of our services and
nock to mock requests to external services (first party or third party). In my opinion, this makes developing a service in isolation just by assuming the contract between the service under development and those forming the environment is right. It allows you to execute your code without requiring other services to be running, which I'm my opinion is a must in such architecture.
I have to convince them. Do you think those arguments are enough? Any tip?
Thanks in advance!