fix(tests): correct node_modules assertion for --catalog

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 <noreply@anthropic.com>
This commit is contained in:
Claude Bot
2025-12-16 05:33:57 +00:00
parent 7323081d67
commit f180b08927

View File

@@ -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();