What is covered
Real contracts, not just smoke tests.
The tests cover backend selection, mock streaming, tokenizer behavior, compiled WASM loading, SmartField and SmartForm propagation, task registry behavior, hub manifest shape, OpenAI-compatible shim behavior, and four full browser demos.
Coverage
88.02% line coverage.
The Node unit coverage report shows 88.02% line coverage, 80.83% branch coverage, and 83.28% function coverage across imported JavaScript modules. The lower spots are browser-only backend paths and hub iframe behavior.
Important signal
The WASM path is exercised.
Four tests load the compiled dhamaka-runtime.wasm from disk, instantiate it through the JavaScript engine wrapper, stream tokens, check deterministic output, and verify abort handling.
Known gaps
Good tests, not complete tests.
- Playwright e2e should be wired into CI.
window.ai and Transformers.js need stronger browser-backend coverage.
- Formula transforms need deeper edge-case matrices.
- LLM quality needs evals, not only deterministic unit tests.