From ba416cff14c1014bc2e2fe5f7002b1392d67cfd4 Mon Sep 17 00:00:00 2001 From: Calvin Yau Date: Tue, 11 Mar 2025 12:02:49 -0700 Subject: [PATCH 1/4] chore: Force tests to fail for testing purposes --- src/ui/TopBanner/TopBanner.test.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/TopBanner/TopBanner.test.tsx b/src/ui/TopBanner/TopBanner.test.tsx index 581c661852..22a523fb28 100644 --- a/src/ui/TopBanner/TopBanner.test.tsx +++ b/src/ui/TopBanner/TopBanner.test.tsx @@ -32,7 +32,8 @@ describe('TopBanner', () => { ) const div = screen.getByTestId('top-banner-root') - expect(div).toBeInTheDocument() + // expect(div).toBeInTheDocument() + expect(div).not.toBeInTheDocument() expect(div).toHaveClass('bg-ds-gray-primary') }) @@ -56,7 +57,8 @@ describe('TopBanner', () => { ) const text = screen.getByText('Test default banner') - expect(text).toBeInTheDocument() + // expect(text).toBeInTheDocument() + expect(text).not.toBeInTheDocument() }) }) From fd5436512a8c31edb330926e9bd72d012bb70109 Mon Sep 17 00:00:00 2001 From: Calvin Yau Date: Tue, 11 Mar 2025 13:39:18 -0700 Subject: [PATCH 2/4] chore: Add sample lines --- src/ui/TopBanner/TopBanner.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ui/TopBanner/TopBanner.tsx b/src/ui/TopBanner/TopBanner.tsx index e3e48e1a75..3becd97c50 100644 --- a/src/ui/TopBanner/TopBanner.tsx +++ b/src/ui/TopBanner/TopBanner.tsx @@ -37,6 +37,13 @@ const topBannerContext = z.object({ localStorageKey: z.string().optional(), setHideBanner: z.function().args(z.boolean()).returns(z.void()), }) +// TESTING: changing lines to get coverage change +// +// +// eslint-disable-next-line @typescript-eslint/no-unused-vars +const sampleFunction = () => { + return 'test' +} type TopBannerContextValue = z.infer From 40ea6ec6fc017003d8c18090ad4c7e288f3cc29f Mon Sep 17 00:00:00 2001 From: Calvin Yau Date: Mon, 17 Mar 2025 11:58:20 -0700 Subject: [PATCH 3/4] more testing changes --- .../routes/CommitsTab/CommitsTable/createCommitsTableData.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/PullRequestPage/PullCoverage/routes/CommitsTab/CommitsTable/createCommitsTableData.tsx b/src/pages/PullRequestPage/PullCoverage/routes/CommitsTab/CommitsTable/createCommitsTableData.tsx index 9d18c80924..765dc626e2 100644 --- a/src/pages/PullRequestPage/PullCoverage/routes/CommitsTab/CommitsTable/createCommitsTableData.tsx +++ b/src/pages/PullRequestPage/PullCoverage/routes/CommitsTab/CommitsTable/createCommitsTableData.tsx @@ -43,6 +43,7 @@ export const createCommitsTableData = ({ pages }: CommitsTableData) => { if (commit?.coverageStatus === COMMIT_STATUS_ERROR) { patch = } else if (commit?.coverageStatus === COMMIT_STATUS_PENDING) { + console.log('pending upload') patch = } else if ( commit?.coverageStatus === COMMIT_STATUS_COMPLETED && @@ -78,6 +79,7 @@ export const createCommitsTableData = ({ pages }: CommitsTableData) => { bundleAnalysis =

{content}

} + // sdfasgsags return { name: ( Date: Mon, 17 Mar 2025 12:20:09 -0700 Subject: [PATCH 4/4] changes --- .../CommitsTab/CommitsTable/createCommitsTableData.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/PullRequestPage/PullCoverage/routes/CommitsTab/CommitsTable/createCommitsTableData.tsx b/src/pages/PullRequestPage/PullCoverage/routes/CommitsTab/CommitsTable/createCommitsTableData.tsx index 765dc626e2..c3a73ac9f6 100644 --- a/src/pages/PullRequestPage/PullCoverage/routes/CommitsTab/CommitsTable/createCommitsTableData.tsx +++ b/src/pages/PullRequestPage/PullCoverage/routes/CommitsTab/CommitsTable/createCommitsTableData.tsx @@ -43,7 +43,6 @@ export const createCommitsTableData = ({ pages }: CommitsTableData) => { if (commit?.coverageStatus === COMMIT_STATUS_ERROR) { patch = <ErroredUpload /> } else if (commit?.coverageStatus === COMMIT_STATUS_PENDING) { - console.log('pending upload') patch = <PendingUpload /> } else if ( commit?.coverageStatus === COMMIT_STATUS_COMPLETED && @@ -79,7 +78,9 @@ export const createCommitsTableData = ({ pages }: CommitsTableData) => { bundleAnalysis = <p>{content}</p> } - // sdfasgsags + // making changes to test processing process + console.log('hello') + return { name: ( <Title