-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
test: execute shell directly for refresh() #55051
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #55051 +/- ##
=======================================
Coverage 89.13% 89.14%
=======================================
Files 665 665
Lines 193165 193179 +14
Branches 37191 37196 +5
=======================================
+ Hits 172181 172204 +23
- Misses 13729 13730 +1
+ Partials 7255 7245 -10 |
cc @nodejs/cpp-reviewers @nodejs/tsc would you mind reviewing? |
This comment was marked as outdated.
This comment was marked as outdated.
I don't really have a strong opinion on it. The code change looks fine but not sure if it's worthwhile or not. @nodejs/testing folks? |
I expect problems in windows, but if we can get it to pass on CI it's ok. |
This PR doesn't update Windows implementation. Only UNIX |
This comment was marked as outdated.
This comment was marked as outdated.
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.
One minor comment, but other than that LGTM if the CI passes.
682b29e
to
f03ece3
Compare
This comment was marked as outdated.
This comment was marked as outdated.
test/common/tmpdir.js
Outdated
@@ -5,17 +5,27 @@ const fs = require('fs'); | |||
const path = require('path'); | |||
const { pathToFileURL } = require('url'); | |||
const { isMainThread } = require('worker_threads'); | |||
const isUnixLike = process.platform !== 'win32'; | |||
const { escapePOSIXShell } = require('./index.js'); |
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.
Looks like you need to lazy load to workaround the circular dependency
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.
Thanks! Updating PR now
f03ece3
to
5888bc2
Compare
What if we just called the shell directly to avoid the cost of booting a Node.js instance?
cc @nodejs/build any concerns?