@testable-ui/core
v0.1.1
Published
Deterministic semantic test-id naming engine + manifest/registry generation, framework-agnostic
Maintainers
Readme
@testable-ui/core
Naming engine and registry generator for testable-ui. Used internally by
@testable-ui/vite — you only need this directly if you are building a
custom adapter.
Deterministic (sha256("testable-ui/v1:" + canonicalPath) → 12-hex suffix),
semantic (accname-aligned signal ladder), idempotent (preserves existing ids).
Exports
nameElement(signals, options)— compute the semantic base id for one element.allocateComponentIds(bases[])— deduplicate identical bases inside a component.pathSuffix(relativePath)—sha256("testable-ui/v1:" + canonicalPath)→ first 12 hex chars.renderRegistrySource(manifest)— emittest-ids.generated.tscontent.ROLE_SIGNAL_PRIORITY,DEFAULT_OPTIONS— constants/types.
License
MIT
