-
Notifications
You must be signed in to change notification settings - Fork 27
Use cross-spawn to fix spaces in install path in v2 #961
Conversation
Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
const spawnError = new Error("Pretend this was thrown by spawnSync"); | ||
const isDirSpy = jest.spyOn(childProc, "spawnSync").mockImplementation(() => { | ||
const isDirSpy = jest.spyOn(spawn, "sync").mockImplementation(() => { |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class
Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #961 +/- ##
==========================================
+ Coverage 89.51% 89.52% +0.01%
==========================================
Files 207 207
Lines 11259 11259
Branches 2507 2507
==========================================
+ Hits 10078 10080 +2
+ Misses 1181 1179 -2
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
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.
LGTM, thanks @awharn!
Should we create an issue to update other places where child_process.spawn
is used in the future? For example, ProcessUtils.openInEditor
could fail if the file path includes a space.
It might make sense to fix that now too. |
Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
Kudos, SonarCloud Quality Gate passed! |
Release succeeded for the The following packages have been published:
Powered by Octorelease 🚀 |
No description provided.