b881e025f6
Change email booking field's editable property from 'system' to 'system-but-optional' across all code paths. This allows email field to be optional when phone field is required instead. - Updated systemBeforeFieldEmail in API v2024_06_14 transformers - Fixed explicit override in API v2024_04_15 service - Updated test utility to match production behavior - Ensures consistency with validation logic that requires either email OR phone to be visible and required Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Unit and Integration Tests
Make sure you have copied .env.test.example to .env.test
You can run all jest tests as
yarn test
You can run tests matching specific description by following command
yarn test -t getSchedule
Tip: Use --watchAll flag to run tests on every change