File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,6 @@ import childProcess, { execSync } from 'child_process';
2121
2222const samplesDir = path . join ( __dirname , '..' , 'samples' ) ;
2323
24- // List folders to exclude from testing.
25- const excludedFolders = [ "js-api-loader-map" ] ;
26-
2724// Function to return all sample folders.
2825const getAllSampleFolders = ( ) => {
2926 return fs . readdirSync ( samplesDir ) . filter ( ( file ) => {
@@ -77,14 +74,11 @@ const getChangedSampleFolders = (): string[] => {
7774 }
7875
7976 // Validate that changed folders actually exist in samplesDir
80- let validChangedFolders = changedFolders . filter ( folderName => {
77+ const validChangedFolders = changedFolders . filter ( folderName => {
8178 const folderPath = path . join ( samplesDir , folderName ) ;
8279 return fs . existsSync ( folderPath ) && fs . statSync ( folderPath ) . isDirectory ( ) ;
8380 } ) ;
8481
85- // Filter out excluded folders.
86- validChangedFolders = validChangedFolders . filter ( folderName => ! excludedFolders . includes ( folderName ) ) ;
87-
8882 if ( validChangedFolders . length === 0 ) {
8983 console . warn ( "Folders were found, but none were valid sample directories. Skipping tests." ) ;
9084 console . log ( "Extracted folder names that were considered invalid:" , changedFolders ) ;
You can’t perform that action at this time.
0 commit comments