From a15d445be8e654ae7350073cb5eed0fd02d6d838 Mon Sep 17 00:00:00 2001 From: robobun <117481402+robobun@users.noreply.github.com> Date: Sat, 22 Aug 2026 06:29:41 +0000 Subject: [PATCH] test(install): update pm ls and prune snapshots to the new count wording #38952 renamed the summary counts: `bun pm ls` prints `node_modules (N installed)` and `bun prune` prints `(checked N installed packages)`. Four inline snapshots that landed in parallel (#39962, #39157) still expect the old text and fail on every lane. --- test/cli/install/bun-pm.test.ts | 6 +++--- test/cli/install/bun-prune.test.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/cli/install/bun-pm.test.ts b/test/cli/install/bun-pm.test.ts index aeade10af7b1..8ab93b18ba94 100644 --- a/test/cli/install/bun-pm.test.ts +++ b/test/cli/install/bun-pm.test.ts @@ -600,7 +600,7 @@ it.each([ const [stdout, stderr, exitCode] = await spawnAndCollect("pm", "ls"); expect(stderr).toBe(""); expect(normalizeBunSnapshot(stdout, package_dir)).toMatchInlineSnapshot(` - " node_modules (5) + " node_modules (5 installed) ├── bar@0.0.2 ├── bar-alias@0.0.2 ├── ws-once@workspace:packages/ws-once @@ -622,7 +622,7 @@ it("should list a trusted workspace the root also depends on once with --trusted const [stdout, stderr, exitCode] = await spawnAndCollect("pm", "ls", "--trusted"); expect(stderr).toBe(""); expect(normalizeBunSnapshot(stdout, package_dir)).toMatchInlineSnapshot(` - " node_modules (5) + " node_modules (5 installed) └── ws-once@workspace:packages/ws-once" `); expect(exitCode).toBe(0); @@ -670,7 +670,7 @@ it("should list a root optional peer that a dependency provides", async () => { const [stdout, stderr, exitCode] = await spawnAndCollect("pm", "ls"); expect(stderr).toBe(""); expect(normalizeBunSnapshot(stdout, package_dir)).toMatchInlineSnapshot(` - " node_modules (2) + " node_modules (2 installed) ├── bar@0.0.2 └── moo@moo" `); diff --git a/test/cli/install/bun-prune.test.ts b/test/cli/install/bun-prune.test.ts index b59827f13b97..945f9c6a5fa9 100644 --- a/test/cli/install/bun-prune.test.ts +++ b/test/cli/install/bun-prune.test.ts @@ -658,7 +658,7 @@ test.concurrent("isolated linker: --verbose does not print the store build timin - no-deps@1.0.1 - one-dep@1.0.0 - 2 packages removed (checked 5)" + 2 packages removed (checked 5 installed packages)" `); expect(stderr).not.toContain("Resolved peers"); expect(stderr).not.toContain("Created store");