diff --git a/tests/cli-generate-cli.integration.test.ts b/tests/cli-generate-cli.integration.test.ts index 5c99140..0f585c3 100644 --- a/tests/cli-generate-cli.integration.test.ts +++ b/tests/cli-generate-cli.integration.test.ts @@ -526,13 +526,18 @@ describe('mcporter CLI integration', () => { expect(helpOutput.stdout).not.toContain('admin-reset'); const pingOutput = await new Promise<{ stdout: string; stderr: string }>((resolve, reject) => { - execFile(binaryPath, ['ping', '--echo', 'works', '--output', 'json'], { env: process.env }, (error, stdout, stderr) => { - if (error) { - reject(error); - return; + execFile( + binaryPath, + ['ping', '--echo', 'works', '--output', 'json'], + { env: process.env }, + (error, stdout, stderr) => { + if (error) { + reject(error); + return; + } + resolve({ stdout, stderr }); } - resolve({ stdout, stderr }); - }); + ); }); const parsed = JSON.parse(pingOutput.stdout.trim()) as { ok: boolean; echo?: string }; expect(parsed.ok).toBe(true);