Skip to content

Commit 3032f98

Browse files
committed
test(rewards): preserve theme exports in useRewardsToast test mock by spreading actual exports
1 parent fd348ed commit 3032f98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/components/UI/Rewards/hooks/useRewardsToast.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jest.mock('../../../../../locales/i18n', () => ({
3636
jest.mock('../../../../util/theme', () => {
3737
const actualTheme = jest.requireActual('../../../../util/theme');
3838
return {
39+
...actualTheme,
3940
useAppThemeFromContext: () => actualTheme.mockTheme,
4041
};
4142
});

0 commit comments

Comments
 (0)