-
Notifications
You must be signed in to change notification settings - Fork 0
feat: tests #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: tests #83
Conversation
0858c37 to
0175440
Compare
b83f92c to
17374de
Compare
| process.on("unhandledRejection", (reason, promise) => { | ||
| console.error("Unhandled Rejection at: Promise", { promise, reason }); | ||
| }); | ||
| setup().then(run); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tsx doesn't support top-level await
87f19a4 to
46878bb
Compare
| export const t = transifex.t; | ||
| export const tx = transifex.tx; | ||
| export const t = transifex?.t; | ||
| export const tx = transifex?.tx; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Transifex behaves weird again. In some module resolution contexts it just resolves to undefined. For example when using tsx to run the worker. Which is not a problem right now, as we very probably don't need working translations in the worker.
| shamefully-hoist=true | ||
| strict-peer-dependencies=false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was only used by bun.
🖊️ Description
💡 What? Why? How?
This refactors the aggregation logic into a generic aggregator, that is properly unit-tested. It also runs e2e-tests directly in the pipeline, which is faster in and allows for things like osm-sync-db seeding in the future.
It also moves from bun to node/npm and uses vitest as test runner which makes things easier. It just wasn't feasible to run the testing suite we wanted with the bun test runner.
📎 Related Ticket
https://app.asana.com/1/1200321573365931/project/1208833037492986/task/1211624818750138?focus=true
Before creating this merge request, go over the following checklist (click to expand).
Remove any items that are not applicable.
💪 I have tested my code
🧼 I have cleaned up my code
--interactiveif applicable, keeping commits in sensible chunks if possible).🔍 I have performed a self-review of my code
✨ I have created a nice pull request
📝 I updated the documentation
🔍 Reviewing
When reviewing this merge request, here are some things to keep in mind: