mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
Two build/load fixes surfaced by running the full test suite: - server/imports.js: import the new server-only files so they actually load. In mainModule mode a file not imported here never loads, so Accounts.onLogin avatar localization (server/avatarLocalizationOnLogin.js) and the imported-user reconciliation Meteor methods (server/importedUserReconciliation.js) would silently never register. - Test __dirname collision: 'meteor test' crashed at boot with 'Identifier __dirname has already been declared'. The client test index (client/lib/tests/index.js) loads boardTriggersClass.tests.js, which referenced the bare __dirname global; under meteor test that makes Meteor inject a colliding with its CommonJS wrapper's, aborting the whole server bundle (the same failure already fixed once in dependencies.openapi.tests.js — this was the next file to trip it). Replace __dirname with a process.cwd()/PWD walk-up in boardTriggersClass.tests.js, and defensively in the node-run tests/rtl.test.js, tests/stickers.test.js and tests/stickers.packs.test.js too. Thanks to xet7.