@@ -119,14 +119,14 @@ describe('bundleConfigPack', () => {
119119
120120 if ( receivedPath === expectedFrameDir ) {
121121 return [
122- { name : 'framefile.js' , isFile : ( ) => true , isDirectory : ( ) => false } as Dirent ,
123- { name : 'subdir' , isFile : ( ) => false , isDirectory : ( ) => true } as Dirent ,
124- ]
122+ { name : 'framefile.js' , isFile : ( ) => true , isDirectory : ( ) => false } ,
123+ { name : 'subdir' , isFile : ( ) => false , isDirectory : ( ) => true } ,
124+ ] as Dirent < any > [ ]
125125 }
126126 if ( receivedPath === expectedSubDir ) {
127127 return [
128- { name : 'nestedframe.txt' , isFile : ( ) => true , isDirectory : ( ) => false } as Dirent ,
129- ]
128+ { name : 'nestedframe.txt' , isFile : ( ) => true , isDirectory : ( ) => false } ,
129+ ] as Dirent < any > [ ]
130130 }
131131 logger . warn ( `[Test Mock Warning] Unhandled readdir path: ${ receivedPath } ` )
132132 return [ ] // Default empty
@@ -210,7 +210,7 @@ describe('bundleConfigPack', () => {
210210 const receivedPath = path . normalize ( dirPath . toString ( ) )
211211 const expectedFrameDir = path . normalize ( frameDir )
212212 if ( receivedPath === expectedFrameDir ) {
213- return [ { name : 'framefile.js' , isFile : ( ) => true , isDirectory : ( ) => false } as Dirent ]
213+ return [ { name : 'framefile.js' , isFile : ( ) => true , isDirectory : ( ) => false } ] as Dirent < any > [ ]
214214 }
215215 logger . warn ( `[Test Mock Warning] Unhandled readdir path: ${ receivedPath } ` )
216216 return [ ]
0 commit comments