From f180b08927c7b4edeb98f94de7fa681715544943 Mon Sep 17 00:00:00 2001 From: Claude Bot Date: Tue, 16 Dec 2025 05:33:57 +0000 Subject: [PATCH] fix(tests): correct node_modules assertion for --catalog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The --catalog flag installs dependencies to resolve versions before writing the catalog reference, so node_modules SHOULD exist after the operation completes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- test/cli/install/bun-add-catalog.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cli/install/bun-add-catalog.test.ts b/test/cli/install/bun-add-catalog.test.ts index a704bccf90..7f7998779a 100644 --- a/test/cli/install/bun-add-catalog.test.ts +++ b/test/cli/install/bun-add-catalog.test.ts @@ -41,8 +41,8 @@ describe("bun add --catalog", () => { // The add command should succeed expect(exitCode).toBe(0); - // Verify node_modules was NOT created (catalog mode shouldn't install) - expect(existsSync(join(packageDir, "node_modules"))).toBe(false); + // Verify node_modules WAS created (--catalog installs to resolve versions) + expect(existsSync(join(packageDir, "node_modules"))).toBe(true); // Check that package.json was updated with catalog reference const updatedPackageJson = await file(join(packageDir, "package.json")).json();