Skip to content

chore(analytics): sweep saveDataRecording from identity + hardware-wallet test mocks#31992

Open
NicolasMassart wants to merge 1 commit into
mainfrom
analytics/finish-pr-c-accounts
Open

chore(analytics): sweep saveDataRecording from identity + hardware-wallet test mocks#31992
NicolasMassart wants to merge 1 commit into
mainfrom
analytics/finish-pr-c-accounts

Conversation

@NicolasMassart

@NicolasMassart NicolasMassart commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Description

Removes saveDataRecording: false from the inline build() return value in user-storage-controller-init.test.ts and setSaveDataRecording: jest.fn() from the builder mock in qrScannerUtils.test.ts. Both fields were stale after the legacy saveDataRecording chain was removed in N8 (#31256).

This is PR-C of 6 in the owner-scoped sequence finishing the legacy MetaMetrics migration (#26820). PRs A–E are parallel mock-sweeps; PR-F does the interface removal once all five merge.

Changelog

CHANGELOG entry: null

Related issues

Refs: #26820

Manual testing steps

N/A — test mock cleanup only; unit tests cover the changed files.

Screenshots/Recordings

Before

N/A

After

N/A

Pre-merge author checklist

Performance checks (if applicable)

  • I've tested on Android
    • Ideally on a mid-range device; emulator is acceptable
  • I've tested with a power user scenario
    • Use these power-user SRPs to import wallets with many accounts and tokens
  • 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.

…llet test mocks

Removes `saveDataRecording: false` from the inline `build()` return
value in `user-storage-controller-init.test.ts` and
`setSaveDataRecording: jest.fn()` from the builder mock in
`qrScannerUtils.test.ts`. Both were stale after the legacy
`saveDataRecording` chain was removed in N8 (#31256).

Part of #26820.

Co-authored-by: Cursor <cursoragent@cursor.com>
@NicolasMassart NicolasMassart requested a review from a team as a code owner June 18, 2026 12:35
@github-actions

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 18, 2026
@NicolasMassart NicolasMassart marked this pull request as draft June 18, 2026 12:36
@mm-token-exchange-service mm-token-exchange-service Bot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Jun 18, 2026
@NicolasMassart NicolasMassart self-assigned this Jun 18, 2026
@mm-token-exchange-service mm-token-exchange-service Bot removed the INVALID-PR-TEMPLATE PR's body doesn't match template label Jun 18, 2026
@NicolasMassart NicolasMassart added the skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. label Jun 18, 2026
@NicolasMassart NicolasMassart marked this pull request as ready for review June 18, 2026 13:23
@NicolasMassart NicolasMassart removed the skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. label Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant