Ten modules were reached only from tests. Some were copies of production
logic kept beside it, so a test passed whatever production did; the rest
were re-export files that only tests imported.
Copies removed, the test now reading what runs:
- models/lib/oauth2ClientSecretJwt.js: wekan-oidc ran its own vendored copy.
The package file is now the only one and tests/oauth2ClientSecretJwt
drives it; tests/packageAppImportBoundary fails if a second copy returns.
- models/lib/scrollbarCss.js (#5439): tests/scrollbarCss reads the rules in
client/components/lists/list.css.
- models/lib/createListParams.js: tests/createListParams reads the check()
pattern of createListAfter in server/models/lists.js and runs it by the
rules of Meteor's check, so changing the server pattern fails the test.
- server/lib/cardMatch.js (#5910): the search is a Mongo selector in
server/publications/cards.js, which tests/boardSearchComments now reads.
- server/lib/dueDateEdits.js (#6081): Cards.getDueDateChangeCount() counts
the a-dueAt activities itself.
Helpers that production now calls:
- models/lib/checklistHide.js (was server/lib): the Checklists helpers
hideCheckedState() and isItemHidden() call it, with the same strict
"checked is true" rule as before.
- models/lib/subtaskSettings.js (was server/lib): the Board Settings
subtask pickers mark the selected board and list with it.
resolveSubtaskLanding(), which nothing called, is removed with its tests.
Re-export files removed, the tests importing the real module:
server/lib/listColors.js, cardScope.js, announcementVisibility.js,
customNumberFormat.js and subtaskHelpers.js.
docs/DeveloperDocs/Directory-Structure.md pointed at the migrations/
directory, which no longer exists; it now names server/migrations.
Thanks to xet7 !