For testing purposes, is there any way to replace a contract referenced by a hardcoded address with a mock?
I'm defining an interface in my contract
address interfaceAddress = 0x...; IInterface if = IInterface(interfaceAddress);
But now I need to test against a mock version of this contract but don't know how without passing the
interfaceAddress as an argument in the constructor. I do not want to do this because I'm interfacing with a lot of contracts and don't want to have to pass all of them in the constructor.