chore: Typescript Cleanup- Part 3 for Test Files#7291
Conversation
src/tests/unit/tests/reports/get-quick-assess-summary-model.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Some of the items that were removed (like the featureFlagStoreData accessor) were likely used for features that were at one point still under development. I like removing them now, even though it means potentially re-adding them (with correct support in the types) at some future time.
There's always the risk that we've broken something, but since we need to a full accessibility test pass before releasing with the FluentUI update, this seems like the right time to make this sort of extensive change.
Hi @DaveTryon, |
madalynrose
left a comment
There was a problem hiding this comment.
A couple small changes but overall looks good! love seeing so much deleted code!
src/tests/unit/tests/reports/get-quick-assess-summary-model.test.ts
Outdated
Show resolved
Hide resolved
I looked and this instance of |
madalynrose
left a comment
There was a problem hiding this comment.
One small tweak and then I think this is good to go!
src/views/content/markup.tsx
Outdated
| export interface MarkupOptions { | ||
| setPageTitle?: boolean; | ||
| } | ||
| export interface ExtendedMarkupOptions extends MarkupOptions { |
There was a problem hiding this comment.
Let's move this to the top of the test file since it isn't needed for any production code.
madalynrose
left a comment
There was a problem hiding this comment.
One additional small tweak!
Co-authored-by: Madalyn <3230904+madalynrose@users.noreply.github.com>
Details
As part of Typescript migration added/removed the error causing fields.
Motivation
TypeScript 5.0 has marked some options as deprecated. We can temporarily override these deprecations, but the documented plan is for the ability to override the flag to go away in TypeScript 5.5
Context
Property 'featureFlagStoreData' does not exist on type 'IntrinsicAttributes & AdHocToolsPanelProps & { children?: ReactNode; }'.
selectedPivot: DetailsViewPivotType.assessment; navMenu: ReactFCWithDisplayName<...>; narrowModeStatus: NarrowModeStatus; isSideNavOpen: false; setSideNavOpen: null; }' is not assignable to type 'InteractiveHeaderProps'.
Pull request checklist
yarn fastpassyarn test)<rootDir>/test-results/unit/coveragefix:,chore:,feat(feature-name):,refactor:). SeeCONTRIBUTING.md.