docs(bugs): test-suite gap now seeded (harness + 19 tests)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-30 08:50:50 -04:00
parent 9bc8c4b47f
commit 68b6ffffd7
+1 -1
View File
@@ -99,7 +99,7 @@ Items from testing, with their fork-level fix path:
### Code Hygiene / DevEx ### Code Hygiene / DevEx
- **No automated test suite** (`src/`) — no unit/integration tests configured. - **Automated test suite — seeded, expand coverage.** Harness now in place: `npm test` runs Node's built-in runner via `tsx` (not vitest — Vite 8 is ahead of vitest's range). 19 tests across `utils/common` + `utils/regex`. CI step is informational (`continue-on-error`) — promote to a hard gate when coverage is broader. **Next:** add suites for other pure-logic modules (search filters, ringtone gain math, mxc/url helpers), then component/integration tests.
- **Extensive `as any` casts** across `src/` — gradual typing cleanup. - **Extensive `as any` casts** across `src/` — gradual typing cleanup.
- **`types/matrix/` mirrors SDK types** instead of importing them — drift risk. - **`types/matrix/` mirrors SDK types** instead of importing them — drift risk.
- **Hardcoded CDN URL** should move to an env var (the decoration CDN is now single-sourced in `avatarDecorations.ts`, but the literal is still in-repo). - **Hardcoded CDN URL** should move to an env var (the decoration CDN is now single-sourced in `avatarDecorations.ts`, but the literal is still in-repo).