Back to Docs
Recipe: Code Generator
Transform a Gherkin specification into production-ready TypeScript functions and comprehensive test suites. Copy each layer directly into your codebase.
Feature: User authentication
Scenario: Login with valid credentials
Given a registered user with email "test@example.com"
And password "SecurePass123!"
When the user submits the login form
Then the system returns a JWT access token
And the response status is 200
Scenario: Login with invalid credentials
Given a registered user with email "test@example.com"
When the user submits password "WrongPass"
Then the system returns an error message
And the response status is 401Pipeline
SpecFunctionsTests
Write the spec first. Derive functions from scenarios. Generate tests from acceptance criteria. Each layer is independently copyable.