Skip to content

Commit dfdfd73

Browse files
committed
will this work?
1 parent a886fd2 commit dfdfd73

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

workspaces/util/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import("node:process").then(async ({ default: process }) => {
1919
"@code-chronicles/util/spawnWithSafeStdio"
2020
);
2121
await spawnWithSafeStdio(
22-
"echo",
22+
"jest",
2323
["--color", "-c", JSON.stringify(config), ...process.argv.slice(2)],
2424
{
2525
stdio: "inherit",

workspaces/util/src/execWithArgs.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ export function execWithArgs(
2222
// Without a shell specified, many comands seem to fail to spawn on
2323
// Windows. I verified that it's not a PATH issue. It seems like it's
2424
// probably https://github.com/nodejs/node-v0.x-archive/issues/5841
25-
...(process.platform === "win32" && { shell: "bash" }),
25+
...(process.platform === "win32" && {
26+
shell: "bash",
27+
windowsVerbatimArguments: true,
28+
}),
2629

2730
...options,
2831

workspaces/util/src/spawnWithSafeStdio.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ export function spawnWithSafeStdio(
3434
// Without a shell specified, many comands seem to fail to spawn on
3535
// Windows. I verified that it's not a PATH issue. It seems like it's
3636
// probably https://github.com/nodejs/node-v0.x-archive/issues/5841
37-
...(process.platform === "win32" && { shell: "bash" }),
37+
...(process.platform === "win32" && {
38+
shell: "bash",
39+
windowsVerbatimArguments: true,
40+
}),
3841

3942
...options,
4043
});

0 commit comments

Comments
 (0)