testing react and typescript with jest and enzyme, how would I mock this expectsVideo function such that I can define if it returns true of false based on my test case scenerio
jest.mock('utils/media-utils', () => ({
expectsVideo: () => true,
myOtherFunctions: jest.fn()
}));
the utils/media-utils if a file that is being imported in the react component that I am testing. If I try to reference object from outside it gives me error stating cannot use out of scope variables. Tried various implementation i came across different blogs but no help.