# Legacy JavaScript chat tests This directory contains browser smoke pages for the server-rendered chat and a Jest/jsdom test for bidirectional history loading. Install the static package dependencies and run the automated test with: ```bash cd backend/static npm install npm test ``` The package is configured as ESM because the production chat modules use native `import`/`export`. Jest runs in jsdom and uses Node's VM modules support. For manual browser checks, serve the Django application and open the relevant test page only if its URL is registered in the current branch. `runTests.html` and `chatTestsV2.html` are harness files, not production routes. `chatStylesAudit.js` produces timestamped JSON snapshots. Those snapshots are diagnostic artifacts and should not be treated as normative documentation.