Skip to content

Commit 87147e0

Browse files
authored
Remove excluded folders from sample validation
Returned to its previous state, abandoning the filtering (for now).
1 parent 9f41b72 commit 87147e0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

e2e/samples.spec.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ import childProcess, { execSync } from 'child_process';
2121

2222
const samplesDir = path.join(__dirname, '..', 'samples');
2323

24-
// List folders to exclude from testing.
25-
const excludedFolders = ["js-api-loader-map"];
26-
2724
// Function to return all sample folders.
2825
const getAllSampleFolders = () => {
2926
return fs.readdirSync(samplesDir).filter((file) => {
@@ -77,14 +74,11 @@ const getChangedSampleFolders = (): string[] => {
7774
}
7875

7976
// Validate that changed folders actually exist in samplesDir
80-
let validChangedFolders = changedFolders.filter(folderName => {
77+
const validChangedFolders = changedFolders.filter(folderName => {
8178
const folderPath = path.join(samplesDir, folderName);
8279
return fs.existsSync(folderPath) && fs.statSync(folderPath).isDirectory();
8380
});
8481

85-
// Filter out excluded folders.
86-
validChangedFolders = validChangedFolders.filter(folderName => !excludedFolders.includes(folderName));
87-
8882
if (validChangedFolders.length === 0) {
8983
console.warn("Folders were found, but none were valid sample directories. Skipping tests.");
9084
console.log("Extracted folder names that were considered invalid:", changedFolders);

0 commit comments

Comments
 (0)