diff --git a/tests/json.test.js b/tests/json.test.js index 1bb664aa..bd59eb35 100644 --- a/tests/json.test.js +++ b/tests/json.test.js @@ -68,6 +68,10 @@ t("All files should have valid file names", (t) => { }); t("All files should have the required fields", (t) => { + const files = fs.readdirSync(domainsPath).filter(file => { + const filePath = path.join(domainsPath, file); + return fs.lstatSync(filePath).isFile(); // Only include files + }); files.forEach((file) => { const data = fs.readJsonSync(path.join(domainsPath, file));