WFDASH-WEBAPP/src/app/api/mcp
SJCoetz 0ac05b847b test(mcp): cover quotes.update + create_from_email unit field
- quotes.update: happy path with whitelisted fields, forbidden_field
  rejection for system-controlled fields (status/customer/company/
  quote_number/id), empty-patch rejection, missing-id rejection
- create_from_email: unit field now preserved end-to-end, result.items
  returns the actual QuoteItem array (not just a count)

Also updates the existing tools/list test (now 72 tools, was 71) and
the create_from_email mock in route.test.ts to use the new
items/items_count shape so it matches the type.

All 1379 tests pass.

Co-authored-by: Orca <help@stably.ai>
2026-08-05 11:39:16 +02:00
..
route.test.ts test(mcp): cover quotes.update + create_from_email unit field 2026-08-05 11:39:16 +02:00
route.ts fix(mcp): add quotes.update + preserve unit in create_from_email 2026-08-05 11:39:16 +02:00