File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const getAllSampleFolders = () => {
3636 // Ensure we are only looking at directories within samplesDir, excluding find-changes.sh itself if it's a file
3737 const filePath = path . join ( samplesDir , file ) ;
3838 return fs . statSync ( filePath ) . isDirectory ( ) ;
39- } ) . filter ( sampleFolder => ! isExcluded ( sampleFolder ) ) ;
39+ } ) ;
4040} ;
4141
4242// Function to return only changed sample folders.
@@ -96,7 +96,7 @@ const getChangedSampleFolders = (): string[] => {
9696 }
9797
9898 console . log ( "Running tests only for changed samples: " , validChangedFolders ) ;
99- return validChangedFolders ;
99+ return validChangedFolders . filter ( sampleFolder => ! isExcluded ( sampleFolder ) ) ; // Filter excluded samples.
100100
101101 } catch ( error ) {
102102 console . error ( "Error running find-changes.sh. Skipping tests:" , error ) ;
You can’t perform that action at this time.
0 commit comments