From 2b8304e55b4acd971455c97d490356b35c8cc4ca Mon Sep 17 00:00:00 2001 From: trholdridge Date: Fri, 22 Nov 2024 15:51:25 -0500 Subject: [PATCH] Fix BillingList import --- src/pages/billing/BillingListPage.test.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/pages/billing/BillingListPage.test.tsx b/src/pages/billing/BillingListPage.test.tsx index daade92c52..ca876a1722 100644 --- a/src/pages/billing/BillingListPage.test.tsx +++ b/src/pages/billing/BillingListPage.test.tsx @@ -4,19 +4,23 @@ import { renderWithAppContexts as render } from 'src/testing/test-utils'; import { BillingListPage } from './BillingListPage'; -jest.mock('src/billing/list/BillingList', () => ({ - ...jest.requireActual('src/billing/list/BillingList'), - BillingList: jest.fn((_) => { - return 'billing list'; - }), -})); +type BillingListExports = typeof import('src/billing/List/BillingList'); +jest.mock( + 'src/billing/List/BillingList', + (): BillingListExports => ({ + ...jest.requireActual('src/billing/List/BillingList'), + BillingList: jest.fn((_) => { + return <>billing list; + }), + }) +); type FooterWrapperExports = typeof import('src/components/FooterWrapper'); jest.mock( 'src/components/FooterWrapper', (): FooterWrapperExports => ({ ...jest.requireActual('src/components/FooterWrapper'), - default: jest.fn((props) => { + default: jest.fn((_) => { return <>footer wrapper; }), })