Typescript and Jest: Avoiding type errors on mocked functions Typescript and Jest: Avoiding type errors on mocked functions typescript typescript