Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion e2e/samples.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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.");
Expand Down