feat: characterization tests and domain extraction for flight booking API#1
feat: characterization tests and domain extraction for flight booking API#1
Conversation
…oking API Add characterization tests capturing existing behavior of all flight and booking endpoints, then extract domain logic into focused modules (pricing, search-flights, create/update/cancel-booking) behind repository ports with in-memory adapters.
|
Thanks for the refactor and characterization coverage - I found one blocker before merge:\n\n- Blocking: starts the server at module import time (). With multiple test files, Jest runs suites in parallel by default, so multiple workers try to bind and one fails with .\n - Repro: run
|
|
Posting a corrected version of my previous comment (formatting got mangled by shell interpolation): Thanks for the refactor and characterization coverage - I found one blocker before merge:
|
Summary
flight-booking-api.tsinto focused modules:pricing,search-flights,create-booking,update-booking,cancel-bookingFlightRepository,BookingRepository) with in-memory adaptersTest plan
pnpm testinsession-2/1-characterization-refactoring/to verify all characterization tests passrequests.shto verify endpoints work end-to-end