Trying to mock all the functions of a JavaScript class with Jest
I am trying to mock a JavaScript service class (AppInsightsService
) that I pass in to a tool class (OrderHistoryTool
) to use. I don’t want to return any data from the mock – I just want to ignore all calls to the service functions, and also allow me to pass in the mock when I create my tool that uses that service.