diff --git a/superset-frontend/src/components/Chart/chartActions.test.ts b/superset-frontend/src/components/Chart/chartActions.test.ts index cdce6da30a3..03c841a5d6b 100644 --- a/superset-frontend/src/components/Chart/chartActions.test.ts +++ b/superset-frontend/src/components/Chart/chartActions.test.ts @@ -129,13 +129,13 @@ describe('chart actions', () => { some_param: 'fake query!', result_type: 'full', result_format: 'json', - }); + } as unknown as ReturnType); fakeMetadata = { useLegacyApi: true }; mockedGetChartMetadataRegistry.mockImplementation( () => ({ get: () => fakeMetadata, - }) as ReturnType, + }) as unknown as ReturnType, ); mockedGetChartBuildQueryRegistry.mockImplementation( () => @@ -145,7 +145,7 @@ describe('chart actions', () => { result_type: 'full', result_format: 'json', }), - }) as ReturnType, + }) as unknown as ReturnType, ); waitForAsyncDataStub = sinon .stub(asyncEvent, 'waitForAsyncData')