diff --git a/e2e/samples.spec.ts b/e2e/samples.spec.ts index a292f637..36116121 100644 --- a/e2e/samples.spec.ts +++ b/e2e/samples.spec.ts @@ -21,6 +21,11 @@ import childProcess, { execSync } from 'child_process'; const samplesDir = path.join(__dirname, '..', 'samples'); +// Add sample folders to this list to exclude them from the test run. +const excludedFolders = [ + 'map-drawing-terradraw', +]; + // Function to return all sample folders. const getAllSampleFolders = () => { return fs.readdirSync(samplesDir).filter((file) => { @@ -95,7 +100,10 @@ const getChangedSampleFolders = (): string[] => { } }; -const foldersToTest = getChangedSampleFolders(); +// Get changed folders, filtering out excluded ones. +const foldersToTest = getChangedSampleFolders().filter( + (folder) => !excludedFolders.includes(folder) +); if (foldersToTest.length === 0) { console.log("No sample folders found.");