[No QA] Remove unsafe type assertions from OptionsListUtilsTest.tsx tests#96517
Merged
Conversation
blimpich
approved these changes
Jul 21, 2026
Contributor
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
49 tasks
Contributor
|
🚀 Deployed to staging by https://github.com/blimpich in version: 9.4.42-0 🚀
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation of Change
Removed
@typescript-eslint/no-unsafe-type-assertionviolations fromtests/unit/OptionsListUtilsTest.tsxas part of the cleanup for Expensify/App issue #94739.What changed:
Why this approach is safe:
Reviewer focus:
Safety checks:
Fixed Issues
$ #94739
PROPOSAL: #94739 (comment)
Count change
Current baseline source:
config/eslint/eslint.seatbelt.tsvBefore:
tests/unit/OptionsListUtilsTest.tsx: 49 violationsAfter:
tests/unit/OptionsListUtilsTest.tsx: 0 violationsNet reduction:
@typescript-eslint/no-unsafe-type-assertionviolations.TSV evidence:
main.Tests
Run:
Verify focused lint passes with no target-rule warnings for the edited file.
Run:
Verify the generated seatbelt row reflects 0 violations, then restore
config/eslint/eslint.seatbelt.tsvbefore committing.Run:
Verify the focused test suite passes.
Verification result: Focused lint, formatter checks, React Compiler compliance, diff hygiene, full type checking, and all 306 focused Jest tests passed. Trusted Fork CI also passed every required check.
Offline tests
Not applicable. This test-only cleanup does not change application behavior, network handling, or offline behavior.
QA Steps
No manual QA is required because this PR changes only existing automated test fixtures and assertions and has no user-facing behavior.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Not applicable. The change is confined to automated unit tests and introduces no platform-specific or user-facing behavior.
No screenshots or videos are needed because there is no visual or user-facing change.
Android: mWeb Chrome
Not applicable. The change is confined to automated unit tests and introduces no platform-specific or user-facing behavior.
No screenshots or videos are needed because there is no visual or user-facing change.
iOS: Native
Not applicable. The change is confined to automated unit tests and introduces no platform-specific or user-facing behavior.
No screenshots or videos are needed because there is no visual or user-facing change.
iOS: mWeb Safari
Not applicable. The change is confined to automated unit tests and introduces no platform-specific or user-facing behavior.
No screenshots or videos are needed because there is no visual or user-facing change.
MacOS: Chrome / Safari
Not applicable. The change is confined to automated unit tests and introduces no platform-specific or user-facing behavior.
No screenshots or videos are needed because there is no visual or user-facing change.