@ouispec/testing
v0.4.0
Published
The OUI conformance kit (ADR-0226 §3.2): checks a design system, an app's generated manifest and a tier 2 mapping against the published contract, in the integrator's own test runner
Downloads
2,220
Readme
@ouispec/testing
The OUI conformance kit (ADR-0226 §3.2). It runs in the integrator's own test runner, in any DOM environment, and checks a product against the published contract (@ouispec/contract):
checkDesignSystem— a tier 1 design system: its table and declaration match the schemas, every entry registers with its declared kind, every export that takes a callback is accounted for, and every binding'srunreturns its callback's result (a job'spending.jobIdtoo).checkApp— every action of a generated manifest has a handler mounted on the page that offers it.checkTier2— every tier 2 wrapper forwardsvalueFromcorrectly, and every uncontrolled use is reported.
assertConformant(report) throws with every violation, by rule. See the integrator guide's "The conformance kit" section for a worked example.
