From c6d67610665cf6c09bdebdaa9366291167c65a23 Mon Sep 17 00:00:00 2001 From: Mathieu Suen Date: Thu, 14 Nov 2024 10:20:25 +0100 Subject: [PATCH] SGB-216 Reduce number of render line to fix slow test --- server/sonar-web/src/main/js/apps/code/__tests__/Code-it.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/code/__tests__/Code-it.ts b/server/sonar-web/src/main/js/apps/code/__tests__/Code-it.ts index c620624df31..daf271f213a 100644 --- a/server/sonar-web/src/main/js/apps/code/__tests__/Code-it.ts +++ b/server/sonar-web/src/main/js/apps/code/__tests__/Code-it.ts @@ -58,7 +58,7 @@ jest.mock('../../../components/SourceViewer/helpers/lines', () => { const lines = jest.requireActual('../../../components/SourceViewer/helpers/lines'); return { ...lines, - LINES_TO_LOAD: 20, + LINES_TO_LOAD: 5, }; }); @@ -66,7 +66,7 @@ jest.mock('../../../api/quality-gates', () => ({ getQualityGateProjectStatus: jest.fn(), })); -const DEFAULT_LINES_LOADED = 19; +const DEFAULT_LINES_LOADED = 5; const originalScrollTo = window.scrollTo; const branchesHandler = new BranchesServiceMock(); -- 2.39.5