From: 7PH Date: Tue, 20 Jun 2023 12:28:30 +0000 (+0200) Subject: [NO-JIRA] Move AnalysisWarningsModal tests to RTL X-Git-Tag: 10.2.0.77647~576 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9b872d59d54c1a0ba0108cb820ab4b5355a27c99;p=sonarqube.git [NO-JIRA] Move AnalysisWarningsModal tests to RTL --- diff --git a/server/sonar-web/src/main/js/api/mocks/ComputeEngineServiceMock.ts b/server/sonar-web/src/main/js/api/mocks/ComputeEngineServiceMock.ts index d1a3b9bf592..51544f39231 100644 --- a/server/sonar-web/src/main/js/api/mocks/ComputeEngineServiceMock.ts +++ b/server/sonar-web/src/main/js/api/mocks/ComputeEngineServiceMock.ts @@ -70,7 +70,7 @@ export default class ComputeEngineServiceMock { jest.mocked(getActivity).mockImplementation(this.handleGetActivity); (getStatus as jest.Mock).mockImplementation(this.handleGetStatus); (getTypes as jest.Mock).mockImplementation(this.handleGetTypes); - (getTask as jest.Mock).mockImplementation(this.handleGetTask); + jest.mocked(getTask).mockImplementation(this.handleGetTask); (getWorkers as jest.Mock).mockImplementation(this.handleGetWorkers); (setWorkerCount as jest.Mock).mockImplementation(this.handleSetWorkerCount);