From 44d5fbcfe0f73ac580a504ebcd1fd72852109a78 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Tue, 27 Oct 2026 14:02:34 +0100 Subject: [PATCH] test(install): assert a renamed workspace command's old name is gone (#17432) The oracle's renamed-bin scenario checked only that the dependent links the new name. Both CLIs now also remove the old one, pnpm v11 since pnpm/pnpm#17371, so the scenario asserts that too, for every layout and driver. Co-authored-by: Claude Opus 5.5 --- pnpm/crates/cli/tests/suite/repeat_install_oracle.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pnpm/crates/cli/tests/suite/repeat_install_oracle.rs b/pnpm/crates/cli/tests/suite/repeat_install_oracle.rs index 7bd3e9afee..678f74e912 100644 --- a/pnpm/crates/cli/tests/suite/repeat_install_oracle.rs +++ b/pnpm/crates/cli/tests/suite/repeat_install_oracle.rs @@ -1036,6 +1036,7 @@ fn a_workspace_bin_renamed(layout: Layout) { // the run gate for `a` refuses too. scenario.check_gates_allowing(AllowedRefusal::Run); assert!(links(&scenario, "a-cli"), "{layout:?}: c links the renamed command"); + assert!(!links(&scenario, "a-tool"), "{layout:?}: c no longer links the old command"); } /// The `@pnpm.e2e` scope routed to a registry that does not serve the