Bulk user creation (Jest)
Generated output
Section titled “Generated output”### ✅ Bulk user creation
- **Given** the following users exist **Users** | email | role | status | | ----------------- | ----- | ------ | | [email protected] | admin | active | | [email protected] | user | active | | [email protected] | user | locked |- **When** the admin opens the user list- **Then** the user list should include **Expected** | email | role | status | | ----------------- | ----- | ------ | | [email protected] | admin | active | | [email protected] | user | active | | [email protected] | user | locked |Jest code
Section titled “Jest code”import { story } from 'executable-stories-jest';
describe('Users', () => { it('Bulk user creation', () => { story.init(); story.given('the following users exist'); story.table({ label: 'Users', columns: ['email', 'role', 'status'], rows: [ ], }); story.when('the admin opens the user list'); story.then('the user list should include'); story.table({ label: 'Expected', columns: ['email', 'role', 'status'], rows: [ ], }); });});