experiments in a post-browser web

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 Commit 7f588ea5 Parent 1b04b16b Change ID mvouonpl
+2 -2
2 changed files