banira test

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.

Usage

$ banira test <files...> [options]

Arguments

ArgumentDescription
<files...>Component source files to test.

Options

OptionDescription
--reflectionAlso round-trip each observed attribute ↔ its backing property and warn on either direction that doesn’t reflect.
--slotsAlso inject sample slotted content and warn on declared @slots with no matching (and shadow s with no @slot).

Examples

smoke-test every element
$ banira test src/*.ts
also check reflection + slots
$ banira test src/*.ts --reflection --slots

Notes

Catches 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.