Skip to content

Commit

Permalink
Fix BillingList import
Browse files Browse the repository at this point in the history
  • Loading branch information
trholdridge committed Nov 22, 2024
1 parent 993f174 commit 2b8304e
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/pages/billing/BillingListPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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</>;
}),
})
Expand Down

0 comments on commit 2b8304e

Please sign in to comment.