Skip to content

chore(analytics): remove stale MetricsEventBuilder mock from AccountsMenu test (core-ux)#31253

Merged
NicolasMassart merged 2 commits into
mainfrom
analytics/pr5-core-ux
Jun 9, 2026
Merged

chore(analytics): remove stale MetricsEventBuilder mock from AccountsMenu test (core-ux)#31253
NicolasMassart merged 2 commits into
mainfrom
analytics/pr5-core-ux

Conversation

@NicolasMassart

@NicolasMassart NicolasMassart commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Description

Removes the stale MetricsEventBuilder mock reference from the AccountsMenu test file. The component was already migrated to AnalyticsEventBuilder; this cleans up the leftover mock.

Part of the analytics migration cleanup series.

Changelog

CHANGELOG entry: null

Related issues

Refs: #26686

Manual testing steps

N/A — test-only change.

Screenshots/Recordings

Before

N/A

After

N/A

Pre-merge author checklist

Performance checks (if applicable)

  • I've tested on Android
  • I've tested with a power user scenario
  • I've instrumented key operations with Sentry traces for production performance metrics

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Made with Cursor


Note

Low Risk
Test-only cleanup with no production or runtime behavior changes.

Overview
Removes the unused jest.mock for MetricsEventBuilder from AccountsMenu.test.tsx as part of analytics migration cleanup.

Analytics in these tests is already covered by the useAnalytics mock (trackEvent, createEventBuilder); the old core builder mock was redundant and no longer referenced.

Reviewed by Cursor Bugbot for commit c1de9c1. Bugbot is set up for automated code reviews on this repo. Configure here.

…Menu test (core-ux)

AccountsMenu.tsx was already using useAnalytics directly. Removes the now-redundant
MetricsEventBuilder mock from AccountsMenu.test.tsx.

Co-authored-by: Cursor <cursoragent@cursor.com>
@NicolasMassart NicolasMassart self-assigned this Jun 9, 2026
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@mm-token-exchange-service mm-token-exchange-service Bot added the team-mobile-platform Mobile Platform team label Jun 9, 2026
@mm-token-exchange-service mm-token-exchange-service Bot added INVALID-PR-TEMPLATE PR's body doesn't match template and removed INVALID-PR-TEMPLATE PR's body doesn't match template labels Jun 9, 2026
@NicolasMassart NicolasMassart marked this pull request as ready for review June 9, 2026 08:57
@NicolasMassart NicolasMassart requested a review from a team as a code owner June 9, 2026 08:57
@github-actions github-actions Bot added the risk:low AI analysis: low risk label Jun 9, 2026
@NicolasMassart NicolasMassart enabled auto-merge June 9, 2026 13:01
@NicolasMassart NicolasMassart added this pull request to the merge queue Jun 9, 2026
Merged via the queue into main with commit 44730df Jun 9, 2026
65 checks passed
@NicolasMassart NicolasMassart deleted the analytics/pr5-core-ux branch June 9, 2026 13:44
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 9, 2026
@metamaskbotv2 metamaskbotv2 Bot added the release-7.82.0 Issue or pull request that will be included in release 7.82.0 label Jun 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-7.82.0 Issue or pull request that will be included in release 7.82.0 risk:low AI analysis: low risk size-XS team-mobile-platform Mobile Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants