test(cms): clean up all partner-logo test artifacts
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Waiting to run
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Blocked by required conditions
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Blocked by required conditions
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Waiting to run
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Blocked by required conditions

This commit is contained in:
Do Siki
2026-08-23 10:23:00 +02:00
parent f65c22987f
commit 611e229af9
+4 -2
View File
@@ -166,8 +166,10 @@ async function main() {
assert.ok(tBody.path.startsWith('/partners/'), 'traversal name is sanitized to a safe slug');
assert.ok(!tBody.path.includes('..'), 'no traversal in the returned path');
} finally {
try { fs.unlinkSync(partnerFile); } catch { /* noop */ }
try { fs.rmdirSync(partnerDir); } catch { /* not empty */ }
try {
for (const f of fs.readdirSync(partnerDir)) fs.unlinkSync(path.join(partnerDir, f));
fs.rmdirSync(partnerDir);
} catch { /* best effort */ }
}
console.log('Content Editor logo upload test: OK');