fix(shared): Windows .cmd shims no longer print DEP0190 on every spawn (#19385)
Co-authored-by: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
f5b5f9dd7b
commit
c08093c2b1
8 files changed
+89
-75
No files matched your search
@@ -127,14 +127,17 @@ describe("runProcess", () => {
|
||||
it.effect("resolves and escapes Windows command shims before spawning", () => {
|
||||
const spawner = makeSpawner((command) =>
|
||||
Effect.sync(() => {
|
||||
expect(command.command).toBe('^"C:\\Users\\tester\\AppData\\Roaming\\npm\\az.cmd^"');
|
||||
expect(command.args).toEqual([
|
||||
'^"repos^"',
|
||||
'^"pr^"',
|
||||
'^"list^"',
|
||||
'^"--source-branch^"',
|
||||
'^"feature^ ^&^ release^"',
|
||||
]);
|
||||
expect(command.command).toBe(
|
||||
[
|
||||
'^"C:\\Users\\tester\\AppData\\Roaming\\npm\\az.cmd^"',
|
||||
'^"repos^"',
|
||||
'^"pr^"',
|
||||
'^"list^"',
|
||||
'^"--source-branch^"',
|
||||
'^"feature^ ^&^ release^"',
|
||||
].join(" "),
|
||||
);
|
||||
expect(command.args).toEqual([]);
|
||||
expect(command.options.shell).toBe(true);
|
||||
return makeHandle({ stdout: "[]" });
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user