You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix collab report export
* test: make getCSVReports tests self-contained with own fixtures
All tests in the getCSVReports describe block now create their own
approved CollabReport records in beforeAll and clean them up in afterAll.
Queries are scoped via 'id.in' to prevent interference from ambient
database state, replacing fragile 'length >= 2' assertions.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* test: expand getCSVReports fixtures to 11 records to prove unlimited default
Creating only 2 records meant the old REPORTS_PER_PAGE=10 default would
still return all records, so the 'uses default parameters' test passed
regardless of whether the limit was 'all' or 10.
With 11 records (one more than REPORTS_PER_PAGE), arrayContaining(csvReportIds)
can only succeed when the query has no limit — proving getCSVReports truly
omits pagination for CSV exports.
Also updates the sort test's toHaveLength(2) to toHaveLength(csvReportIds.length)
to stay accurate with the larger fixture set.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Update collab report model with a transformed virtual field
* Fix unit tests for transformers
* Add encoding, update test
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments