fix: preserve setup diagnostics and clean Knip config

This commit is contained in:
N0zoM1z0
2026-07-14 19:27:31 +08:00
parent 5231e95c19
commit 5a7ccefc68
5 changed files with 58 additions and 17 deletions
+4
View File
@@ -19,6 +19,10 @@ describe("setup installer failure projection", () => {
["runtime_dependencies", "runtime_dependency_unavailable"],
["unsupported_hopper_build", "unsupported_hopper_build"],
["cancelled", "setup_cancelled"],
["destination_exists", "destination_exists"],
["mount", "mount_failed"],
["bundle", "bundle_invalid"],
["copy", "copy_failed"],
] as const)("maps %s to %s", (reason, code) => {
const result = setupInstallFailure(reason as HopperInstallFailureReason);
expect(result).toMatchObject({ status: "failed", code });