From 7e531698936991abbbc7bd9a7870f88078bfa2fb Mon Sep 17 00:00:00 2001 From: litefarm-pr-bot <266148868+litefarm-pr-bot@users.noreply.github.com> Date: Thu, 30 Jul 2026 15:26:52 -0700 Subject: [PATCH] LF-5425 Stop sending attachment URLs as form parts in the supportTicket test The POST helper expanded the fake attachment URL array into one multipart part per URL. With the 10-part field limit on multerDiskUpload, a fixture carrying 10 URLs produced 11 parts and the request was rejected with 400 before reaching the controller. The parts carried no coverage: they are text parts, so req.file is undefined either way, and addSupportTicket sets attachments to an empty array before the insert. Co-Authored-By: Claude Opus 5 (1M context) --- packages/api/tests/supportTicket.test.js | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/api/tests/supportTicket.test.js b/packages/api/tests/supportTicket.test.js index aab7b92e6f..0f0ea69c4d 100644 --- a/packages/api/tests/supportTicket.test.js +++ b/packages/api/tests/supportTicket.test.js @@ -54,7 +54,6 @@ describe('supportTicket Tests', () => { .set('user_id', user_id) .set('farm_id', farm_id) .field({ - _file_: data.attachments, data: JSON.stringify(data), }) .end(callback);