feat: add SQS + EventBridge

This commit is contained in:
Zakaria
2026-09-24 22:34:04 -04:00
parent 9bbe80b5f2
commit 1b129e9dcf
37 changed files with 2902 additions and 66 deletions
@@ -48,3 +48,16 @@ test('replaces Hello World source when the Lambda runtime changes', async () =>
expect(screen.getByLabelText('Hello World Source')).toHaveValue('def handler(event, context):\n return {}')
})
test('edits key-value fields as variable rows', async () => {
const onSubmit = vi.fn()
const user = userEvent.setup()
render(<DynamicFormRenderer schema={{...schema, fields: [{name: 'environment', label: 'Environment Variables', type: 'key-value', required: false}]}} isSubmitting={false} onSubmit={onSubmit}/>)
await user.click(screen.getByRole('button', {name: 'Add variable'}))
await user.type(screen.getByLabelText('Environment Variables key 1'), 'APP_GREETING')
await user.type(screen.getByLabelText('Environment Variables value 1'), 'Hello')
await user.click(screen.getByRole('button', {name: 'Create'}))
expect(onSubmit).toHaveBeenCalledWith({environment: '[{"key":"APP_GREETING","value":"Hello"}]'})
})