@@ -21,15 +21,6 @@ import childProcess, { execSync } from 'child_process';
2121
2222const samplesDir = path . join ( __dirname , '..' , 'samples' ) ;
2323
24- // Samples to exclude from build and e2e runs.
25- const excludedSamples = new Set < string > ( [
26- 'react-ui-kit-place-details' ,
27- 'react-ui-kit-search-nearby' ,
28- 'react-ui-kit-search-text' ,
29- ] ) ;
30-
31- const isExcluded = ( sampleFolder : string ) => excludedSamples . has ( sampleFolder ) ;
32-
3324// Function to return all sample folders.
3425const getAllSampleFolders = ( ) => {
3526 return fs . readdirSync ( samplesDir ) . filter ( ( file ) => {
@@ -96,7 +87,7 @@ const getChangedSampleFolders = (): string[] => {
9687 }
9788
9889 console . log ( "Running tests only for changed samples: " , validChangedFolders ) ;
99- return validChangedFolders . filter ( sampleFolder => ! isExcluded ( sampleFolder ) ) ; // Filter excluded samples.
90+ return validChangedFolders ; // Filter excluded samples.
10091
10192 } catch ( error ) {
10293 console . error ( "Error running find-changes.sh. Skipping tests:" , error ) ;
@@ -106,7 +97,7 @@ const getChangedSampleFolders = (): string[] => {
10697
10798// Get changed folders, filtering out excluded ones.
10899//const foldersToTest = getChangedSampleFolders();
109- const foldersToTest = getChangedSampleFolders ( ) . filter ( f => ! isExcluded ( f ) ) ;
100+ const foldersToTest = getChangedSampleFolders ( ) ;
110101
111102if ( foldersToTest . length === 0 ) {
112103 console . log ( "No sample folders found." ) ;
0 commit comments