From 4d55e459620208e633afb3560f81de230cf8137a Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Tue, 30 Jun 2026 13:26:58 -0400 Subject: [PATCH] docs(bugs): test suite at 123 tests, now a hard CI gate Co-Authored-By: Claude Opus 4.8 --- LOTUS_BUGS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LOTUS_BUGS.md b/LOTUS_BUGS.md index 51e95c6cf..f50df6bf7 100644 --- a/LOTUS_BUGS.md +++ b/LOTUS_BUGS.md @@ -99,7 +99,7 @@ Items from testing, with their fork-level fix path: ### Code Hygiene / DevEx -- **Automated test suite — harness in place, 108 tests, expand coverage.** `npm test` runs Node's built-in runner via `tsx` (not vitest — Vite 8 is ahead of vitest's range). Covered: `utils/common`, `regex`, `sanitize` (XSS guards), `time`, `matrix`, `mimeTypes`, `sort`, `findAndReplace`, `AsyncSearch`, `ASCIILexicalTable`, message-search filters. Prevention work already caught + fixed a real bug (`findAndReplace` infinite-loop on non-global regex). CI step is informational (`continue-on-error`) — **ready to promote to a hard gate.** **Next:** component/integration tests; more state/reducer logic. +- **Automated test suite — harness in place, 123 tests, now a hard CI gate.** `npm test` runs Node's built-in runner via `tsx` (not vitest — Vite 8 is ahead of vitest's range) and **blocks the build job on failure**. Covered: `utils/common`, `regex`, `sanitize` (XSS guards), `time`, `matrix`, `matrix-uia` (auth flows), `mimeTypes`, `sort`, `accentColor` (color math), `findAndReplace`, `AsyncSearch`, `ASCIILexicalTable`, message-search filters. Prevention work already caught + fixed a real bug (`findAndReplace` infinite-loop on non-global regex). **Next:** component/integration tests; more state/reducer logic. - **Extensive `as any` casts** across `src/` — gradual typing cleanup. - **`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).