#7180: Upgrade Cucumber-js to v12#7221
Conversation
…g.js, use fs.constants.F_OK to avoid warnings
…syntax to have the access to this object
Fix line numbers in getScenarioID
…hich are already covered by #copyMethodsFromServices()
|
nice!let me know when this is ready for review |
|
Hi @DennisOSRM yes, it is ready for review, please tell me what to improve. It is difficult to upgrade the 9 years old code cleanly... But I think it would be good to merge this PR now, because all tests pass: osrm-npm-test.txt And then clean up more in subsequent PRs (for example in this PR I have copied fbresult_generated.js to fbresult_generated.cjs, but in subsequent PR we could convert all remaining *.cjs files to *.js, from CommonJS to ESM) |
|
Sounds good. Would you mind opening tickets after the merge s.t. we have it in the backlog. |
DennisOSRM
left a comment
There was a problem hiding this comment.
Looks ready to me. Only minor comments
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 18 | ||
| node-version: 20 |
There was a problem hiding this comment.
nitpick: is it necessary to bump the node version for these changes?
There was a problem hiding this comment.
Node.js 18 has reached end-of-life 30 Apr 2025: https://endoflife.date/nodejs
And also I was getting the warnings from the CI, that cucumber js needs Node.js 20+
| @@ -0,0 +1,6 @@ | |||
| { | |||
| "tabWidth": 2, | |||
There was a problem hiding this comment.
Should this be part of the PR or is it unrelated?
There was a problem hiding this comment.
This file could be omitted, but in my VS Code I use prettier extension (which is popular with frontend devs) and it was annoyingly reformatting the file on each save and then lint was not happy.
With this .prettierrc which matches the eslint.config.js I did not have the annoyance.
Let's keep it in the PR if you don't mind?
|
Yes, I will create new tickets on further cleanup/improvements during this week |
Issue
Fix the issue #7180 by
functioninstead of arrow syntax for step definitionsAfterinstead of process hooksPlease read our documentation on release and version management.
If your PR is still work in progress please attach the relevant label.
Tasklist
Requirements / Relations