[No QA] Remove unsafe type assertions from getStateForDynamicRouteTests.ts tests#96783
Draft
KJ21-ENG wants to merge 1 commit into
Conversation
|
@youssef-lr 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] |
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/navigation/getStateForDynamicRouteTests.tsas part of the cleanup for Expensify/App issue #94739.What changed:
Why this approach is safe:
Reviewer focus:
keyof typeof DYNAMIC_ROUTESwithout assertions.Safety checks:
Fixed Issues
$ #94739
PROPOSAL: #94739 (comment)
Count change
Current baseline source:
config/eslint/eslint.seatbelt.tsvBefore:
tests/navigation/getStateForDynamicRouteTests.ts: 27 violationsAfter:
tests/navigation/getStateForDynamicRouteTests.ts: 0 violationsNet reduction:
@typescript-eslint/no-unsafe-type-assertionviolations.TSV evidence:
main.Tests
Run:
Verify the target file is formatted.
Run:
Verify focused lint passes with no target-rule warnings for the edited file.
Run:
Verify the focused test suite passes all 11 existing scenarios.
Run:
Verify diff hygiene.
Verification result: The focused Jest suite passed all 11 existing scenarios, with focused ESLint, formatting, bounded target TypeScript validation.
Offline tests
Not applicable: this test-only type-safety cleanup adds no network behavior.
QA Steps
Not applicable: production behavior and UI are unchanged.
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: only a unit-test source file changed.
Not applicable: there are no user-interface changes.
Android: mWeb Chrome
Not applicable: only a unit-test source file changed.
Not applicable: there are no user-interface changes.
iOS: Native
Not applicable: only a unit-test source file changed.
Not applicable: there are no user-interface changes.
iOS: mWeb Safari
Not applicable: only a unit-test source file changed.
Not applicable: there are no user-interface changes.
MacOS: Chrome / Safari
Not applicable: only a unit-test source file changed.
Not applicable: there are no user-interface changes.