dig icon indicating copy to clipboard operation
dig copied to clipboard

How to test dig container

Open sahilpaudel opened this issue 3 years ago • 1 comments

I am compelled to ask here but I am unable to find how to test the dig containers and services created by it. There is an unanswered stackoverflow question as well. https://stackoverflow.com/questions/71220974/how-to-test-uber-dig-application-golang

Please point me to the right direction and some help please.

Thanks.

sahilpaudel avatar Feb 22 '22 18:02 sahilpaudel

I am not able to find any documentation about testing support by dig neither. Hence I switch to https://github.com/samber/do which is supporting to inject the mock components natively by using clone injector

zhengyuan-ehps avatar Oct 15 '23 03:10 zhengyuan-ehps