Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Typescript Cleanup Part 2 of 3 for selector, isEnabled, requirementLink, leftNavLinkBuilder & height:0 #7276

Merged
merged 4 commits into from
Apr 1, 2024

Conversation

v-prachin
Copy link
Contributor

@v-prachin v-prachin commented Mar 18, 2024

Details

Typescript Cleanup Part 2 of 3
We have total 140 errors in 104 files. Thus, targeting each error and fixing it.

Motivation

Errors observed in below files observed after removing deprecated properties from tsconfig file:

1 renderRequirementDescription: requirementLink =>
src/assessments/automated-checks/build-test-steps-from-rules.tsx
No. Of Error: 1
Removed this property based on this PR: #3163

2.selector: selector
src/background/assessment-data-converter.ts
No. Of Error: 1
Added the property in the interface

3.selector: selectorStub
src/tests/unit/tests/background/assessment-data-converter.test.ts
No. Of Error: 3
Added the property in the interface

4.isEnabled: true
src/assessments/cognitive/assessment
src/assessments/headings/assessment.tsx
src/assessments/parsing/assessment.tsx
No. Of Error: 3
Added the property in the interface.

5.leftNavLinkBuilder: leftNavLinkBuilderMock.object
src/tests/unit/tests/DetailsView/components/left-nav/assessment-left-nav.test.tsx
No. Of Error: 1

6.leftNavLinkBuilder: leftNavLinkBuilderMock.object
src/tests/unit/tests/DetailsView/components/left-nav/quick-assess-left-nav.test.tsx
No. Of Error: 1

7.leftNavLinkBuilder: leftNavLinkBuilderMock.object
src/tests/unit/tests/DetailsView/components/left-nav/visualization-based-left-nav.test.tsx
No. Of Error: 1

8.height: 0
src/tests/unit/tests/DetailsView/components/narrow-mode-detector.test.tsx
No. Of Error: 1
This property is not present in the main file, thus removed it from the test file.

Thus, total number of errors covered as part of this user story: 12

Context

Pull request checklist

  • Addresses an existing issue: #(chore: Remove deprecated TypeScript options #6611)
  • Ran yarn fastpass
  • Added/updated relevant unit test(s) (and ran yarn test)
  • Verified code coverage for the changes made. Check coverage report at: <rootDir>/test-results/unit/coverage
  • PR title AND final merge commit title both start with a semantic tag (fix:, chore:, feat(feature-name):, refactor:). See CONTRIBUTING.md.
  • [n/a] (UI changes only) Added screenshots/GIFs to description above
  • [n/a] (UI changes only) Verified usability with NVDA/JAWS

@v-prachin v-prachin changed the title chore: Typescript Cleanup Part 2 of 3 for New errors chore: Typescript Cleanup Part 2 of 3 for selector, isEnabled, requirementLink, leftNavLinkBuilder & height:0 Mar 20, 2024
@v-prachin v-prachin marked this pull request as ready for review March 20, 2024 06:37
@v-prachin v-prachin requested a review from a team as a code owner March 20, 2024 06:37
@v-prachin v-prachin merged commit 338cf73 into microsoft:main Apr 1, 2024
12 checks passed
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.

2 participants