seogeneratorserver/tests/storage/digitalocean.test.js
StillHammer dbf1a3de8c Add technical plan for multi-format export system
Added plan.md with complete architecture for format-agnostic content generation:
- Support for Markdown, HTML, Plain Text, JSON formats
- New FormatExporter module with neutral data structure
- Integration strategy with existing ContentAssembly and ArticleStorage
- Bonus features: SEO metadata generation, readability scoring, WordPress Gutenberg format
- Implementation roadmap with 4 phases (6h total estimated)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 16:14:29 +08:00

22 lines
905 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import test from 'node:test';
import assert from 'node:assert';
import { safeImport } from '../_helpers/path.js';
test('DigitalOceanWorkflow.deployArticle dry-run signature', async () => {
const res = safeImport('DigitalOceanWorkflow');
if (!res.ok || typeof res.mod.deployArticle !== 'function') {
console.warn('[SKIP] DigitalOceanWorkflow.deployArticle missing');
return;
}
const { deployArticle } = res.mod;
const payload = { path:'/articles/slug.html', html:'<article>OK</article>', dryRun:true };
try {
const out = await deployArticle(payload);
// On accepte plusieurs formats de retour ; on vérifie juste que ça nexplose pas en dryRun
assert.ok(out !== undefined);
} catch (e) {
// Si ça échoue car pas de dryRun supporté, on “soft fail”
console.warn('[SKIP] deployArticle threw (no dryRun support?):', e.message);
}
});