From 515013c8b1f166b1fcc1b051af234080f7cce676 Mon Sep 17 00:00:00 2001 From: shadcn Date: Mon, 16 Mar 2026 21:35:29 +0400 Subject: [PATCH] fix --- packages/tests/src/tests/add.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/tests/src/tests/add.test.ts b/packages/tests/src/tests/add.test.ts index a6c5e21ed9..1416150df9 100644 --- a/packages/tests/src/tests/add.test.ts +++ b/packages/tests/src/tests/add.test.ts @@ -215,12 +215,12 @@ describe("shadcn add", () => { }) it("should add item with target to root", async () => { - const fixturePath = await createFixtureTestDirectory("next-app") - await npxShadcn(fixturePath, ["init", "--defaults"]) - await npxShadcn(fixturePath, [ + const fixturePath = await createFixtureTestDirectory("next-app-init") + const result = await npxShadcn(fixturePath, [ "add", "../../fixtures/registry/example-item-to-root.json", ]) + expect(result.exitCode).toBe(0) expect(await fs.pathExists(path.join(fixturePath, "config.json"))).toBe( true )