You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 26, 2026. It is now read-only.
tests/unit/ holds one test file per source module.
tests/integration/ exercises the public API: rendering, inheritance, validation, references, and one regression test per fixed bug.
pnpm test fails below 100% statement, branch, function or line coverage. The HTML report is written to coverage/.
Smoke tests
tests/smoke/ checks what gets published:
every format (ESM, CommonJS, browser ESM, UMD as a global, CommonJS and AMD module, IIFE) loads in plain Node.js and works
the type declarations type-check for ESM and CommonJS consumers
tree-shaking: an unused import bundles to nothing, and validate alone leaves the rendering code out
the files pnpm pack would publish
End-to-end tests
tests/e2e/ serves the repository with a small static server and drives Chromium through:
the documentation website (pnpm build:site first): it's fully rendered by Temme, with highlighted snippets and no errors
examples/index.html
the script tag builds, cross-frame targets and outer element references
The first run needs the browser: pnpm exec playwright install chromium.
Mutation tests
Stryker mutates the source and checks that the tests catch every change. The run fails below a 95% mutation score; the suite currently scores 100%. The report is written to reports/mutation/index.html.