Something went wrong. Try again.
experiments in a post-browser web
Something went wrong. Try again.
fix(tests): correct stale projectRoot path in entity unit tests master
apps/desktop/main/entities.test.ts and entity-frecency.test.ts computed projectRoot as resolve(__dirname, '..', '..', '..') from __dirname = apps/desktop/dist/main/, which resolves to apps/. The dynamic import then looked for apps/features/entities/extractors/ regex.js -- a path that does not exist. Correct location is apps/desktop/features/entities/extractors/regex.js. Drop one .. so projectRoot resolves to apps/desktop/ and the dynamic imports resolve to the real files. Pre-fix: ERR_MODULE_NOT_FOUND aborts yarn test:unit early; the two files together host ~320 it() calls, all blocked. Post-fix: yarn test:unit runs the full ~1850 main-process unit tests.
Author burrito.space Date (May 21, 2026, 5:27 PM UTC) Commit 7f588ea5 7f588ea5794af8ebaabe8fb79415bfa1cbf064cd Parent 1b04b16b 1b04b16bb2d6e5fa6ab7dd17454d827ae65b4314 Change ID mvouonpl mvouonplqmvnkpqnykrsuzpvotnxyots