Add an incremental SHA-256 library for the browser and node tests

This commit is contained in:
Claude
2026-09-30 07:27:31 +00:00
parent a27788a80a
commit b56be586ee
7 changed files with 169 additions and 2 deletions

View File

@@ -430,7 +430,7 @@ now paints immediately and reconciles afterwards:
`render()` — so every playlist mutation refreshes both in one place.
## Testing
- Unit: **`node --test frontend/*.test.js`** (sw, sw-update, async-guard, video-edit, lyrics-core, stats-core).
- Unit: **`node --test frontend/*.test.js`** (sw, sw-update, async-guard, video-edit, lyrics-core, stats-core, sha256).
Server: **`cd server && bun run test`** — runs each file in its own process (db.js is a
singleton, so two test files in one `bun test` run share one temp DB; bare `bun test`
also drags in the frontend node tests via the `public` symlink). media-cache needs a