cal/apps/api/test
Udit Takkar 371a0f7245
feat: booking errors logging (#12325)
Fixes: https://github.com/calcom/cal.com/issues/12297
Fixes https://github.com/calcom/cal.com/issues/11234

- Displaying error message and X-Vercel-Id( Unique Request Id ) to user on book event form
- Improve error logging 
- Add Error codes

Few things to discuss

1) How to handle calendar integration failures ?
   Currently if for example google integration is broken and someone is trying to book that person then we log the error but don't inform the user that the google calendar is broken and the meeting goes through.
   
 Should I throw error when integration is broken ?
   
<img width="758" alt="Screenshot 2023-11-12 at 12 52 36 AM" src="https://github.com/calcom/cal.com/assets/53316345/c4d921c4-9c8a-4b9b-82a2-bbe0fdbcb3d4">

   
2)  How to handle conferencing app failures? 
 We just default to Cal Video  as location if we are unable to generated conferencing url and log the error and not inform the user(organizer).
2023-11-15 12:52:19 -07:00
..
lib feat: booking errors logging (#12325) 2023-11-15 12:52:19 -07:00
docker-compose.yml chore: prettier 2023-08-15 11:59:16 -07:00
jest-resolver.js Moved API files to correct dir 2023-05-25 11:29:10 -07:00
jest-setup.js Moved API files to correct dir 2023-05-25 11:29:10 -07:00
README.md Moved API files to correct dir 2023-05-25 11:29:10 -07:00

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 _post

Tip: Use --watchAll flag to run tests on every change