React component is not reading the value from the context provider
The <Pads />
component is dependent on a value of a given context provider <PowerContext>
. To test for this I have created a custom render
function that returns render(<PowerContext.Provider {...providerProps}>{ui}</PowerContext.Provider>, renderOptions);
Invocation of mocked function isn’t registered properly
I have the problem that a mocked function (from jest.fn()
) is invoced but that invocation isn’t registered. I found other ppl. having the same problem when they’re forgot to await
a async
call, but I don’t really see how that applies in my case.