From 312b49121fd76693312630e98f798289306871cc Mon Sep 17 00:00:00 2001 From: Kosty Maleyev Date: Wed, 29 Jan 2025 15:45:34 -0800 Subject: [PATCH] [react] fix Products.test.js failing after PR 667; rename codecov.yml (#669) --- .github/workflows/run_codecov_on_pull_request.yml | 2 +- react/src/tests/Products.test.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_codecov_on_pull_request.yml b/.github/workflows/run_codecov_on_pull_request.yml index 62fcf4e04..4933441bf 100644 --- a/.github/workflows/run_codecov_on_pull_request.yml +++ b/.github/workflows/run_codecov_on_pull_request.yml @@ -1,4 +1,4 @@ -name: codecov.yml +name: run_codecov_on_pull_request.yml # Run Codecov on PR open or change on: push: diff --git a/react/src/tests/Products.test.js b/react/src/tests/Products.test.js index 30642dec3..23b10f658 100644 --- a/react/src/tests/Products.test.js +++ b/react/src/tests/Products.test.js @@ -12,6 +12,7 @@ jest.mock('@sentry/react', () => ({ withScope: jest.fn((fn) => fn({ _tags: { se: 'mocked_se' } })), captureException: jest.fn(), setContext: jest.fn(), + startSpan: jest.fn(), withProfiler: (Component) => Component, }));