Skip to content

Create order

Tags and a shared background on the same scenario.

import { story } from 'executable-stories-vitest';
import { describe, it } from 'vitest';
describe("Feature: Orders", () => {
it("Create order", ({ task }) => {
story.init(task, { tags: ["db", "smoke"] });
story.given("the database is seeded");
story.given("the API is running");
story.when("the client creates an order");
story.then("the response status should be 201");
story.then("the order should exist in the database");
});
});
### ✅ Create order
Tags: `db`, `smoke`
- **Given** the database is seeded
- **And** the API is running
- **When** the client creates an order
- **Then** the response status should be 201
- **And** the order should exist in the database