test: keep package setup verification read-only

This commit is contained in:
morluto
2026-07-15 06:40:23 +00:00
parent 02f12b927a
commit acaf03056d
+4 -4
View File
@@ -406,7 +406,7 @@ try {
const aligned = json(alignedExecution.stdout);
const secondExecution = await runWithStatus(
cli,
["setup", "--yes", "--install-hopper", "--json"],
["setup", "--install-hopper", "--json"],
environment,
);
const second = json(secondExecution.stdout);
@@ -414,15 +414,15 @@ try {
const status = process.platform === "linux" ? "needs_human" : "ready";
if (
first.status !== status ||
second.status !== status ||
second.status !== "needs_confirmation" ||
firstExecution.status !== (status === "ready" ? 0 : 1) ||
secondExecution.status !== (status === "ready" ? 0 : 1) ||
secondExecution.status !== 1 ||
aligned.status !== status ||
alignedExecution.status !== (status === "ready" ? 0 : 1) ||
aligned.plannedActions.length !== 0 ||
aligned.appliedActions.length !== 0 ||
!second.plannedActions.some(({ kind }) => kind === "install_hopper") ||
!second.appliedActions.includes("installed_hopper")
second.appliedActions.length !== 0
)
throw new Error(
`packaged setup did not preserve idempotent defaults and explicit Hopper reinstall behavior: ${JSON.stringify({ first, aligned, second })}`,