Skip to content
Tech News
← Back to articles

Yadda 3.0.0: BDD in the Age of AI Agents

read original more articles
Why This Matters

Yadda 3.0.0 marks a significant modernization of the JavaScript BDD library, streamlining its architecture and integrating modern tools like Playwright and Puppeteer. This update enhances usability and maintainability, making it more accessible for developers and aligning it with current industry standards. The involvement of AI-driven code modernization with Claude underscores the growing role of AI in software development workflows.

Key Takeaways

Yadda 3.0.0: BDD in the Age of AI Agents

I’ve just published Yadda 3.0.0 to npm.

For anyone unfamiliar with it, Yadda is a BDD library for JavaScript. Like Cucumber, it maps ordinary language specifications to executable code, but it was designed from the ground up to be much less prescriptive about how those specifications are written.

That means that instead of writing something like:

Given a university, The University of Bouvet Island And The University of Bouvet Island offers a degree course in Computer Science with entry requirements of ABB And an A-Level graduate, Steve And Steve has a D in Physics And Steve has a D in Maths When Steve applies to study Computer Science at The University of Bouvet Island Then The University of Bouvet Island rejects the application

you can write:

The University of Bouvet Island offers a degree course in Computer Science The entry requirements for which are ABB Steve is an A-Level graduate With a D in Physics And a D in Maths When Steve applies to study Computer Science at The University of Bouvet Island They reject his application

Both are executable specifications. I find the second considerably easier to read.

What’s changed in Yadda 3?

Most of Yadda 3.0 is a modernisation exercise.

... continue reading