import { test } from 'node:test'; import assert from 'node:assert/strict'; import { readFileSync, existsSync } from 'node:fs'; const homepage = () => readFileSync(new URL('../src/Homepage.tsx', import.meta.url), 'utf8'); test('homepage focuses on text, single-image posts, and post replies with no carousels', () => { const text = homepage(); assert.doesNotMatch(text, /carousel/i); assert.match(text, /Paste a post/); assert.doesNotMatch(text.replace(/className="[^"]*"|tweet:|\.tweet|TweetHead|e\.tweet|example\.tweet/g, ''), /tweet/i); assert.match(text, /single-image posts/i); assert.doesNotMatch(text, /bring your own API key|OpenAI|Claude|Codex|Gemini|gpt-image/i); const diagram = readFileSync(new URL('../src/SyncDiagram.tsx', import.meta.url), 'utf8'); assert.doesNotMatch(diagram, /\bMCP\b|external agent/i); assert.match(diagram, /Hosted AI is not enabled/); }); test('website contains no authentication, database, waitlist submission, or tracker integration', () => { const text = homepage(); assert.doesNotMatch(text, /Turnstile|\/api\/|\/auth\/|supabase|process\.env|fetch\(/i); assert.doesNotMatch(text, /