HeadlinesBriefing favicon HeadlinesBriefing.com

Yadda 3.0: BDD with AI Agents

Hacker News •
×

Yadda 3.0 has been published to npm. Yadda is a BDD library that maps plain‑English specs to code, but it is far less prescriptive than Cucumber. Instead of a long, tightly coupled scenario, you can write a clear, readable outline that still runs.

The release is largely a modernization. Node‑only, no browser bundling, obsoleted tools like Casper stocked, and the test suite now lives in Edit. The source is ES6, it ships with TypeScript defs, and it includes fresh examples with Playwright and Puppeteer.

Claude did most of the work using Opus 4.8. The epic was split into phases—remove old bits, update tooling, refactor, explore API changes, then finish docs and TypeScript. Claude made few mistakes and found subtle edge cases. I kept changes separate from tests to preserve a strong external constraint.

BDD’s value lies in domain language and accessibility. Writing requirements in plain English forces consistent terminologyEndogs that see through code,-Americans, and UI. AI changes the economics: the pay‑off is faster with minimal human intervention, giving a new reason to adopt BDD.