The frontend team waits for an API that isn’t deployed yet
The endpoints exist in a branch, but there’s no server to call, and the hand-written mock is already out of date.
- Employee
Why ordinary tests miss it
Hand-written mocks drift from the real API, and shared test environments are busy, broken or a deploy behind. The frontend ends up built against guesses.
Set it up
Connect the repository, on the branch with the new endpoints. Journey Lanes builds a mock backend from what it scans: the records, scoped per company, and a Keycloak-style token endpoint.
Point the frontend at the mock’s address and sign in with its token endpoint, as you would with Keycloak.
When a flow needs a known starting point, give it its own mock data and start fresh before every run.
Scan again when the branch changes. The mock follows the code.
The moment it’s caught
-
✓
Employee
POST /realms/portal/protocol/openid-connect/token200, a token with the employee’s roles -
✓
Employee
GET /api/products200, products in the shape the code declares -
✓
Employee
POST /api/orders201, the new order, in the employee’s company -
✓
Employee
GET /api/orders200, only the orders of the employee’s company
The frontend works against the API as the code defines it, with data scoped per company, before the API is deployed anywhere.
What you use
Catch this one in your own product
Connect a repository, describe the journey, and run it against the mock in a few minutes.