Skip to content

Rewards toast mock theme#26662

Merged
georgewrmarshall merged 1 commit intotest/use-design-tokens-in-assertionsfrom
cursor/rewards-toast-mock-theme-7595
Feb 26, 2026
Merged

Rewards toast mock theme#26662
georgewrmarshall merged 1 commit intotest/use-design-tokens-in-assertionsfrom
cursor/rewards-toast-mock-theme-7595

Conversation

@georgewrmarshall
Copy link
Copy Markdown
Contributor

@georgewrmarshall georgewrmarshall commented Feb 26, 2026

Fix useRewardsToast test mock to correctly re-export mockTheme, resolving TypeErrors due to undefined access.


Note

Low Risk
Low risk: test-only change that fixes a Jest mock to include the real theme exports, preventing mockTheme from being undefined. No production logic is modified.

Overview
Fixes useRewardsToast.test.tsx by updating the ../../../../util/theme Jest mock to spread jest.requireActual exports, ensuring mockTheme and other module exports remain available while still overriding useAppThemeFromContext.

Written by Cursor Bugbot for commit 3032f98. This will update automatically on new commits. Configure here.

@metamaskbot metamaskbot added the team-design-system All issues relating to design system in Mobile label Feb 26, 2026
@georgewrmarshall georgewrmarshall marked this pull request as ready for review February 26, 2026 21:26
@georgewrmarshall georgewrmarshall requested a review from a team as a code owner February 26, 2026 21:26
@georgewrmarshall georgewrmarshall merged commit 8052757 into test/use-design-tokens-in-assertions Feb 26, 2026
34 of 48 checks passed
@georgewrmarshall georgewrmarshall deleted the cursor/rewards-toast-mock-theme-7595 branch February 26, 2026 21:26
@github-actions github-actions bot locked and limited conversation to collaborators Feb 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size-XS team-design-system All issues relating to design system in Mobile

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants