Skip to content

Commit 7167e52

Browse files
committed
Fix type error in e2e-tests
1 parent 37b3d4c commit 7167e52

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

packages/compass-e2e-tests/helpers/compass.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -463,13 +463,18 @@ function execFileIgnoreError(
463463
stderr: string;
464464
}> {
465465
return new Promise((resolve) => {
466-
execFile(path, args, opts, function (error, stdout, stderr) {
467-
resolve({
468-
error,
469-
stdout,
470-
stderr,
471-
});
472-
});
466+
execFile(
467+
path,
468+
args,
469+
{ ...opts, encoding: 'utf8' },
470+
function (error, stdout, stderr) {
471+
resolve({
472+
error,
473+
stdout,
474+
stderr,
475+
});
476+
}
477+
);
473478
});
474479
}
475480

0 commit comments

Comments
 (0)