We have lots of ts-ignore commands in our tests suppressing ts errors because it does not know that these functions are mocks. Replace all of those ts-ignores for mocked functions in our tests with the following (or if you can come up with a better) workaround:
mockedFunction as unknown as jest.Mock<(json: JsonCategoryType, basePath: string) => CategoryModel>
Steffen Kleinle - 12.5.2021, 12:04:39
We have lots of ts-ignore commands in our tests suppressing ts errors because it does not know that these functions are mocks. Replace all of those ts-ignores for mocked functions in our tests with the following (or if you can come up with a better) workaround:
Environment: - Linked issues: