diff --git a/package.json b/package.json index f14a8d703..5fd1a9f52 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ ], "license": "Apache-2.0", "devDependencies": { - "@superset-ui/build-config": "^0.0.9", + "@superset-ui/build-config": "^0.0.11", "@superset-ui/commit-config": "^0.0.9", "fast-glob": "^2.2.6", "fs-extra": "^8.0.1", diff --git a/packages/superset-ui-connection/test/SupersetClientClass.test.ts b/packages/superset-ui-connection/test/SupersetClientClass.test.ts index 3dc296608..d051de2bf 100644 --- a/packages/superset-ui-connection/test/SupersetClientClass.test.ts +++ b/packages/superset-ui-connection/test/SupersetClientClass.test.ts @@ -251,12 +251,13 @@ describe('SupersetClientClass', () => { const mockPutUrl = `${protocol}//${host}${mockPutEndpoint}`; const mockDeleteUrl = `${protocol}//${host}${mockDeleteEndpoint}`; const mockTextJsonResponse = '{ "value": 9223372036854775807 }'; + const mockPayload = { json: () => Promise.resolve('payload') }; - fetchMock.get(mockGetUrl, { json: 'payload' }); - fetchMock.post(mockPostUrl, { json: 'payload' }); - fetchMock.put(mockPutUrl, { json: 'payload' }); - fetchMock.delete(mockDeleteUrl, { json: 'payload' }); - fetchMock.delete(mockRequestUrl, { json: 'payload' }); + fetchMock.get(mockGetUrl, mockPayload); + fetchMock.post(mockPostUrl, mockPayload); + fetchMock.put(mockPutUrl, mockPayload); + fetchMock.delete(mockDeleteUrl, mockPayload); + fetchMock.delete(mockRequestUrl, mockPayload); fetchMock.get(mockTextUrl, mockTextJsonResponse); fetchMock.post(mockTextUrl, mockTextJsonResponse);