speckl/compiler/__tests__
Scott Scoble 39436b4382
Some checks failed
Deploy Landing Page to Storj / deploy (push) Failing after 3s
WASM E2E test: Speckl specs compile to runnable WebAssembly
- Add __tests__/e2e-wasm.test.ts: full pipeline test
  - Parse Counter speck → generate WAT → assemble with wabt → instantiate → run
  - Verify init, action calls, guard pass/fail, state mutations
  - TigerBeetle WAT validation test (wabt parse + validate + toBinary)
- Fix wasm.ts bugs found by E2E:
  - Guard condition inverted: added i32.eqz to negate comparison
  - Missing local declarations: locals now inserted before body
  - Uncompiled guards left stack values: now emit comments only (no i32.const 1)
- Install wabt npm package for WAT→WASM assembly in tests
- 41/41 tests passing (39 original + 2 E2E)

Milestone: Speckl produces runnable WebAssembly from specs.
2026-05-03 13:13:55 -07:00
..
e2e-wasm.test.ts WASM E2E test: Speckl specs compile to runnable WebAssembly 2026-05-03 13:13:55 -07:00
parser.test.ts speckl: TypeScript state machine generator + Forgejo issue workflow spec 2026-05-03 12:23:33 -07:00
tigerbeetle.speck speckl: TypeScript state machine generator + Forgejo issue workflow spec 2026-05-03 12:23:33 -07:00