test(doctor): retain discovered Hopper paths despite version failures
This commit is contained in:
1 parent
c2b79aa462
commit
0686b07546
1 file changed
+1
-2
@@ -62,7 +62,7 @@ cliTest.skipIf(!["darwin", "linux"].includes(process.platform))(
|
|||||||
expect(result.json).toMatchObject({
|
expect(result.json).toMatchObject({
|
||||||
healthy: hopperReady,
|
healthy: hopperReady,
|
||||||
environment_healthy: false,
|
environment_healthy: false,
|
||||||
...(hopperReady ? { hopperPath: launcher } : {}),
|
hopperPath: launcher,
|
||||||
checks: expect.arrayContaining([
|
checks: expect.arrayContaining([
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
name: "hopper",
|
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({
|
await expect(access(launchMarker)).rejects.toMatchObject({
|
||||||
code: "ENOENT",
|
code: "ENOENT",
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user