I am finding that MockFunction works fine if the functions being mocked are not defined, but when they are defined the real definitions are preferred and the mock definitions ignored.
This seems like some sort of race condition. I've tried this with the modern syntax as well to no avail; the mocks seem to be loaded first, then overridden later. But that is just a hypothesis.
I am finding that
MockFunctionworks fine if the functions being mocked are not defined, but when they are defined the real definitions are preferred and the mock definitions ignored.This seems like some sort of race condition. I've tried this with the modern syntax as well to no avail; the mocks seem to be loaded first, then overridden later. But that is just a hypothesis.