Tests — Meshcore
Full automated test results for Meshcore, collected during the QA sweep on 2026-08-13 (Linux, Rust 1.97, Node 22, Python 3). Scroll down — the counters count up, the bars fill in and every row animates as it enters the viewport. Use ▶ Replay animation to run it again.
✅
All tests pass
P2P chat — 22/22 unit tests green on core.js (MQTT packet layer, dedup, rooms).
0
passed
0
failed
0
total
✅MQTT packets0
remaining-length encoding, PUBLISH round-trip, QoS>0 packet id, CONNECT/SUB/UNSUB
✅Ids & dedup0
newMid uniqueness, isNewMid first-sight/expiry/cap, empty ids
✅Rooms0
hash normalisation, 48-char cap, lobby fallback
✅Bytes0
utf8 round-trips, plain arrays
✅Nick colors0
stable deterministic hsl
📝 Notes
- Tests caught a real bug: mqttParsePublish checked the DUP flag (0x08) instead of QoS level (0x06) — fixed.
Reproduce
npm test
npm run check