import test from 'node:test'; import assert from 'node:assert/strict'; import fs from 'node:fs'; import path from 'node:path'; // Node 18 can't import .jsx without a loader; do a lightweight source-based test instead. test('ChatInterface includes Documents UI and always-visible input form', () => { const filePath = path.resolve( process.cwd(), 'src/components/ChatInterface.jsx' ); const src = fs.readFileSync(filePath, 'utf8'); assert.ok(src.includes('className="docs-bar"')); assert.ok(src.includes('Upload .md')); assert.ok(src.includes('className="docs-list"')); assert.ok(src.includes('Delete')); assert.ok(src.includes('doc-preview')); assert.ok(src.includes('className="input-form"')); assert.ok(src.includes('className="message-input"')); });