Manifest-driven smoke test: for every custom element found in the sources, banira compiles its module, mounts it in JSDOM, and asserts the tag registers and upgrades.
| Argument | Description |
|---|---|
<files...> | Component source files to test. |
| Option | Description |
|---|---|
--reflection | Also round-trip each observed attribute ↔ its backing property and warn on either direction that doesn’t reflect. |
--slots | Also inject sample slotted content and warn on declared @slots with no matching |
$ banira test src/*.ts$ banira test src/*.ts --reflection --slotsCatches the most common breakages — a component that throws on construction, or never calls
customElements.define — with no per-component test code. Exits non-zero if any element fails, so it
drops straight into CI. --reflection and --slots add advisory warnings (they don’t fail
the command), since not every attribute is meant to reflect.