Skip to content

Commit ae1f2d0

Browse files
authored
Implement folder exclusion for sample tests
Added a function to omit specific sample folders from testing.
1 parent a1d71c6 commit ae1f2d0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

e2e/samples.spec.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ const getChangedSampleFolders = (): string[] => {
9797

9898
// Get changed folders, filtering out excluded ones.
9999
const foldersToTest = getChangedSampleFolders();
100+
101+
// Function to omit specific sample folders from testing.
102+
const omitSampleFolders = (folders: string[]): string[] => {
103+
const excludedFolders = [
104+
"js-api-loader-map",
105+
];
106+
return folders.filter(folder => !excludedFolders.includes(folder));
107+
};
100108

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

0 commit comments

Comments
 (0)