From 790063c222614633b562f8074301efd692032e56 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <65847850+JaylyDev@users.noreply.github.com> Date: Sun, 18 Jun 2023 14:55:36 +0100 Subject: [PATCH] Update testScriptChecks.ts --- tools/testScriptChecks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testScriptChecks.ts b/tools/testScriptChecks.ts index 132d8425..7a90644d 100644 --- a/tools/testScriptChecks.ts +++ b/tools/testScriptChecks.ts @@ -10,7 +10,7 @@ export function execute (): 0 { for (const scriptName of scripts) { const scriptPath = path.resolve(scriptsPath, scriptName); const files = readdirSync(scriptPath); - const testFiles = files.filter(x => testFilenames.includes(x)); + const testFiles = files.filter(x => testFilenames.includes(x) && !statSync(path.resolve(scriptPath, x)).isDirectory()); if (testFiles.length <= 0) noTestScripts.push(scriptPath); else {