File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ import childProcess, { execSync } from 'child_process';
2121
2222const samplesDir = path . join ( __dirname , '..' , 'samples' ) ;
2323
24+ // Add sample folders to this list to exclude them from the test run.
25+ const excludedFolders = [
26+ 'map-drawing-terradraw' ,
27+ ] ;
28+
2429// Function to return all sample folders.
2530const getAllSampleFolders = ( ) => {
2631 return fs . readdirSync ( samplesDir ) . filter ( ( file ) => {
@@ -95,7 +100,10 @@ const getChangedSampleFolders = (): string[] => {
95100 }
96101} ;
97102
98- const foldersToTest = getChangedSampleFolders ( ) ;
103+ // Get changed folders, filtering out excluded ones.
104+ const foldersToTest = getChangedSampleFolders ( ) . filter (
105+ ( folder ) => ! excludedFolders . includes ( folder )
106+ ) ;
99107
100108if ( foldersToTest . length === 0 ) {
101109 console . log ( "No sample folders found." ) ;
You can’t perform that action at this time.
0 commit comments