From b1ed80deea150b7ddc6d3b861b9b2c18d0b43556 Mon Sep 17 00:00:00 2001 From: mindcarver Date: Sat, 5 Sep 2026 12:41:37 +0800 Subject: [PATCH] test(install): ignore macOS metadata in skill fixtures --- tests/refresh-install.test.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/refresh-install.test.mjs b/tests/refresh-install.test.mjs index 2eb38c4..84dd026 100644 --- a/tests/refresh-install.test.mjs +++ b/tests/refresh-install.test.mjs @@ -8,7 +8,10 @@ import { refreshInstallation } from "../scripts/refresh-install.mjs"; const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); const version = JSON.parse(fs.readFileSync(path.join(root, ".codex-plugin/plugin.json"))).version; -const names = fs.readdirSync(path.join(root, "skills")); +const names = fs.readdirSync(path.join(root, "skills"), { withFileTypes: true }) + .filter(entry => entry.isDirectory() && + fs.existsSync(path.join(root, "skills", entry.name, "SKILL.md"))) + .map(entry => entry.name); const fixture = () => fs.mkdtempSync(path.join(os.tmpdir(), "thinloop-refresh-")); function pluginPayload(target) {