File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ for (const type of apiTypes) {
101101 . withMaxDepth ( 1 )
102102 . withBasePath ( )
103103 . crawl ( "node_modules" ) ;
104+ const files = await api [ type ] ( ) ;
104105 t . expect (
105106 files . every ( ( file ) => file . split ( path . sep ) . length <= 3 )
106107 ) . toBeTruthy ( ) ;
@@ -258,6 +259,7 @@ for (const type of apiTypes) {
258259 . withBasePath ( )
259260 . group ( )
260261 . crawl ( "node_modules" ) ;
262+ const result = await api [ type ] ( ) ;
261263 t . expect ( result . length ) . toBeGreaterThan ( 0 ) ;
262264 } ) ;
263265
@@ -337,6 +339,7 @@ for (const type of apiTypes) {
337339 . withErrors ( )
338340 . withRelativePaths ( )
339341 . crawl ( "./node_modules/" ) ;
342+ const paths = await api [ type ] ( ) ;
340343 t . expect (
341344 paths . every ( ( p ) => ! p . startsWith ( "node_modules" ) && ! p . includes ( "//" ) )
342345 ) . toBeTruthy ( ) ;
@@ -425,6 +428,7 @@ for (const type of apiTypes) {
425428 } )
426429 . withErrors ( )
427430 . crawl ( "node_modules" ) ;
431+ await api [ type ] ( ) ;
428432 if ( type === "withPromise" ) {
429433 t . expect ( readdirStub ) . toHaveBeenCalled ( ) ;
430434 } else {
You can’t perform that action at this time.
0 commit comments