Skip to content

[No QA] Fix ESLint failures in OnboardingPersonalTrackGoal test#93079

Merged
neil-marcellini merged 1 commit into
mainfrom
fix/onboarding-personal-track-goal-eslint
Jun 9, 2026
Merged

[No QA] Fix ESLint failures in OnboardingPersonalTrackGoal test#93079
neil-marcellini merged 1 commit into
mainfrom
fix/onboarding-personal-track-goal-eslint

Conversation

@mountiny

@mountiny mountiny commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Explanation of Change

Fixes the ESLint check failure on main caused by unsafe type assertions in the newly merged OnboardingPersonalTrackGoal UI test.

  • Typed translateGoal with ValueOf<typeof CONST.ONBOARDING_PERSONAL_TRACK_GOALS> so the translation path is inferred without casting.
  • Replaced the partial ResponsiveLayoutResult cast with a complete mock object using satisfies ResponsiveLayoutResult.

Fixed Issues

$

Tests

  1. Ran npx eslint tests/ui/OnboardingPersonalTrackGoal.tsx — passes with no errors.
  2. Ran npm test -- tests/ui/OnboardingPersonalTrackGoal.tsx — both tests pass.

Offline tests

N/A — test-only change.

QA Steps

N/A — test-only change.

Made with Cursor

Use typed goal values and a complete ResponsiveLayoutResult mock so the new UI test passes ESLint on main.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mountiny
mountiny requested a review from a team as a code owner June 9, 2026 14:32
@melvin-bot
melvin-bot Bot requested review from inimaga and removed request for a team June 9, 2026 14:32
@melvin-bot

melvin-bot Bot commented Jun 9, 2026

Copy link
Copy Markdown

@inimaga Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@neil-marcellini
neil-marcellini merged commit c2990dd into main Jun 9, 2026
30 checks passed
@neil-marcellini
neil-marcellini deleted the fix/onboarding-personal-track-goal-eslint branch June 9, 2026 14:43
@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.4.2-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.4.4-1 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 cancelled 🔪

Bundle Size Analysis (Sentry):

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/Julesssss in version: 9.4.4-3 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants