Update preferences (Jest)
Generated output
Section titled “Generated output”### ✅ Update preferences
- **Given** the user has the following preferences **Preferences** | key | value | | --- | --- | | email_opt_in | true | | theme | dark | | timezone | UTC |- **When** the user saves preferences- **Then** the preferences should be persistedJest code
Section titled “Jest code”import { story } from 'executable-stories-jest';
it("Update preferences", () => { story.init(); story.given("the user has the following preferences"); story.table({ label: "Preferences", columns: ["key", "value"], rows: [ ["email_opt_in", "true"], ["theme", "dark"], ["timezone", "UTC"], ], }); story.when("the user saves preferences"); story.then("the preferences should be persisted");});