Alex2Node/test/fixtures
David 8379a65d78 examples: one runnable file per recipe on the 2.0 API, the 1.x files in examples/legacy
Ten recipes: lamp, colour lamp, thermostat, blind, lock (deferred), contact
sensor (ChangeReport), scene, doorbell (raise), typed errors, and a plug as an
ES module. Each reads ALEX2MQTT_USERNAME, _PASSWORD and _ROOT_TOPIC and names
the ones that are missing. The nine examples of 1.5.2 move to examples/legacy
unchanged.

test/examples.test.js starts every file with node, its broker connection sent
to a broker on 127.0.0.1 (test/helpers/loopback.js), discovers the device,
sends directives and checks the answers. A legacy file is started and its
discovery compared with the answer the 1.5.2 build gave, recorded in
test/fixtures/legacy-examples.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 21:38:07 +00:00
..
alexa-docs errors: typed helpers for every documented error type 2026-09-28 21:14:55 +00:00
legacy-examples examples: one runnable file per recipe on the 2.0 API, the 1.x files in examples/legacy 2026-09-28 21:38:07 +00:00
zoo discovery: generate capability JSON from the registry 2026-09-28 15:35:46 +00:00
interfaces.js registry: SceneController events, DoorbellEventSource, SimpleEventSource, TimeHoldController, InventoryLevelSensor, WakeOnLANController 2026-09-28 21:01:53 +00:00
tsconfig.json build: dual CJS/ESM output, ES2020 target, Node 18 floor 2026-09-28 13:58:17 +00:00
types.mts build: the ES module build gets its own declarations 2026-09-28 14:31:34 +00:00
types.ts errors: typed helpers for every documented error type 2026-09-28 21:14:55 +00:00