diff --git a/src/utils/testing.ts b/src/utils/testing.ts index e532e9a114..b826e10d6f 100644 --- a/src/utils/testing.ts +++ b/src/utils/testing.ts @@ -11,7 +11,7 @@ interface MockWithArgs extends jest.MockInstance = T extends new (...args: any[]) => infer R ? jest.MockInstance> - : {} // eslint-disable-line @typescript-eslint/ban-types + : T type MockedFunction = MockWithArgs & { [K in keyof T]: T[K] } type MockedFunctionDeep = MockWithArgs & MockedObjectDeep type MockedObject = MaybeMockedConstructor &