Skip to content

Commit e0291a0

Browse files
authored
fix: Reverts previous changes for exclusion. (#1187)
1 parent 1b14b9a commit e0291a0

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

e2e/samples.spec.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@ import childProcess, { execSync } from 'child_process';
2121

2222
const 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.
3425
const 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

111102
if (foldersToTest.length === 0) {
112103
console.log("No sample folders found.");

0 commit comments

Comments
 (0)