What is the proper way to unit test Service with NestJS/Elastic
问题 Im trying to unit test a Service that uses elastic search. I want to make sure I am using the right techniques. I am new user to many areas of this problem, so most of my attempts have been from reading other problems similar to this and trying out the ones that make sense in my use case. I believe I am missing a field within the createTestingModule. Also sometimes I see providers: [Service] and others components: [Service] . const module: TestingModule = await Test.createTestingModule({