Repository navigation
Testing
Brook Li edited this page Oct 16, 2026
·
1 revision
npm test # node scripts/validate-skill.mjsscripts/validate-skill.mjs runs, in order:
-
SKILL.mdfrontmatter (onlyname,description) and directory name forhtml-prototype-build. - Every relative Markdown link and heading anchor in the skill,
examples/, root READMEs anddocs/. - Syntax check of browser scripts (VM compile; sketch ESM via
node --check; vendor skipped). -
validate-pack.mjson each pack in.html-prototype/packs/. -
generate-registry.mjs --checkforregistry.jsonandui/pack-registry.fallback.jsonat the pinneddefaultRef. -
node:testsuites:
| Area | Files |
|---|---|
| Pack scripts |
tests/scripts/: resolve-pack, install-pack, pack-install-ref, schema-versions |
| End-to-end |
tests/e2e/: pack-publish, pack-install, pack-validate, pack-resolve |
| Packs | tests/packs/admin-desktop/charts.test.mjs |
| Runtime |
tests/runtime/index.test.mjs (aggregates author/, client/, server/, cli/ tests) |
| Contracts | tests/contracts/runtime.test.mjs |
| Example | tests/examples/minimal-notes-system/prototype.test.mjs |
Fixtures: tests/fixtures/{pack-root/mini-pack,chart-pack}; helpers in tests/helpers/.
There is no GitHub Actions workflow in the repo; run npm test locally before submitting (per CONTRIBUTING).
Getting started
Concepts
Authoring
UI packs
Reference