Skip to content

Commit ffa8912

Browse files
try a fix
1 parent caa30eb commit ffa8912

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/helpers/pnpm-helpers.ts

Lines changed: 2 additions & 6 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) =>
@@ -118,16 +116,14 @@ export async function createSupplierData(options: {
118116
];
119117

120118
await new Promise<void>((resolve, reject) => {
121-
let output = "";
122119
const child = spawn(cmd, args, {
123120
stdio: "inherit",
124121
cwd: root,
125122
shell: false,
126123
});
127124
child.stdout?.on("id", (id) => {
128125
const text = id.toString();
129-
output += text;
130-
process.stdout.write(output);
126+
process.stdout.write(text);
131127
});
132128

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

0 commit comments

Comments
 (0)