-
-
Notifications
You must be signed in to change notification settings - Fork 100
Fix backend test suite failures #2136
Copy link
Copy link
Open
Labels
Bugcomplexity: mediumhousekeepingNon-user story development taskNon-user story development taskrole: Back Endsize: 2ptCan be done in 7-12 hoursCan be done in 7-12 hours
Milestone
Metadata
Metadata
Assignees
Labels
Bugcomplexity: mediumhousekeepingNon-user story development taskNon-user story development taskrole: Back Endsize: 2ptCan be done in 7-12 hoursCan be done in 7-12 hours
Type
Projects
Status
No status
Overview
The backend test suite has several pre-existing failures that predate the ESM migration. These need to be resolved so the test suite can serve as a reliable quality gate.
Action Items
auth,events,projects,users) fail becauseprocess.env.CUSTOM_REQUEST_HEADERis undefined — tests should set required env vars themselvesmodels/event.model.test.jsandmodels/projectTeamMember.model.test.jshaveupdatedDateassertions that fail because Mongoose pre-update hooks aren't firing onfindOneAndUpdateandupdateManysetup-test.jshas un-awaiteddeleteMany()calls causing race conditions between testsMongoNetworkError: connection closederrors from parallel test executiondescribeblocks cause Vitest to fail (Jest silently skipped them)Resources/Instructions