Skip to content

Commit eb0cd9c

Browse files
try a fix
1 parent caa30eb commit eb0cd9c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/helpers/pnpm-helpers.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,14 @@ export async function runCreateLetter(options: {
6060
];
6161

6262
await new Promise<void>((resolve, reject) => {
63-
let output = "";
6463
const child = spawn(cmd, args, {
6564
stdio: "inherit",
6665
cwd: root,
6766
shell: false,
6867
});
6968
child.stdout?.on("id", (id) => {
7069
const text = id.toString();
71-
output += text;
72-
process.stdout.write(output);
70+
process.stdout.write(text);
7371
});
7472

7573
child.on("close", (code) =>
@@ -127,7 +125,7 @@ export async function createSupplierData(options: {
127125
child.stdout?.on("id", (id) => {
128126
const text = id.toString();
129127
output += text;
130-
process.stdout.write(output);
128+
process.stdout.write(text);
131129
});
132130

133131
child.on("close", (code) =>

0 commit comments

Comments
 (0)