diff --git a/tests/boundary/cli/doctorHopperDiscovery.test.ts b/tests/boundary/cli/doctorHopperDiscovery.test.ts index 1cddbbbb08..12df465d77 100644 --- a/tests/boundary/cli/doctorHopperDiscovery.test.ts +++ b/tests/boundary/cli/doctorHopperDiscovery.test.ts @@ -62,7 +62,7 @@ cliTest.skipIf(!["darwin", "linux"].includes(process.platform))( expect(result.json).toMatchObject({ healthy: hopperReady, environment_healthy: false, - ...(hopperReady ? { hopperPath: launcher } : {}), + hopperPath: launcher, checks: expect.arrayContaining([ expect.objectContaining({ name: "hopper", @@ -83,7 +83,6 @@ cliTest.skipIf(!["darwin", "linux"].includes(process.platform))( : []), ]), }); - if (!hopperReady) expect(result.json).not.toHaveProperty("hopperPath"); await expect(access(launchMarker)).rejects.toMatchObject({ code: "ENOENT", });