From ea85104bb0ef3181bee73857a7c33588742eed20 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 29 Dec 2025 23:12:34 +0100 Subject: [PATCH] style: format ban cli test --- tests/cli-generate-cli.integration.test.ts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) 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);