@@ -417,7 +417,7 @@ describe('createPluginRegistration', () => {
417417
418418 it ( 'removes registration file and regenerates barrel on remove' , ( ) => {
419419 mockedExists . mockReturnValue ( true ) ;
420- mockedReaddir . mockReturnValue ( [ ] as unknown as ReturnType < typeof readdirSync > ) ;
420+ mockedReaddir . mockReturnValue ( [ ] ) ;
421421
422422 createPluginRegistration ( ROOT , 'test-plugin' , '@codapult/plugin-test' , 'remove' ) ;
423423
@@ -447,7 +447,7 @@ describe('patchPages', () => {
447447
448448 it ( 'removes page files and cleans up empty dirs on remove' , ( ) => {
449449 mockedExists . mockReturnValue ( true ) ;
450- mockedReaddir . mockReturnValue ( [ ] as unknown as ReturnType < typeof readdirSync > ) ;
450+ mockedReaddir . mockReturnValue ( [ ] ) ;
451451
452452 const pages = {
453453 'src/app/(dashboard)/dashboard/widgets/page.tsx' : '@codapult/plugin-test/pages/widgets-page' ,
@@ -569,7 +569,7 @@ describe('patchPages', () => {
569569 if ( dir === '/project/src/app/welcome' ) {
570570 return [ 'page.tsx.codapult-bak-onboarding' ] as unknown as ReturnType < typeof readdirSync > ;
571571 }
572- return [ ] as unknown as ReturnType < typeof readdirSync > ;
572+ return [ ] ;
573573 } ) ;
574574
575575 patchPages ( ROOT , 'onboarding' , pages , 'remove' ) ;
@@ -602,7 +602,7 @@ describe('patchPages', () => {
602602 typeof readdirSync
603603 > ;
604604 }
605- return [ ] as unknown as ReturnType < typeof readdirSync > ;
605+ return [ ] ;
606606 } ) ;
607607
608608 patchPages ( ROOT , 'onboarding' , pages , 'remove' ) ;
@@ -716,7 +716,7 @@ describe('findPageBackups', () => {
716716 typeof readdirSync
717717 > ;
718718 }
719- return [ ] as unknown as ReturnType < typeof readdirSync > ;
719+ return [ ] ;
720720 } ) ;
721721 mockedStat . mockImplementation ( ( p ) => {
722722 const path = p as string ;
0 commit comments