From b6f3b8eaa2cba9bb3b5768bbfa98ad92145faddf Mon Sep 17 00:00:00 2001 From: shadcn Date: Mon, 16 Mar 2026 19:48:04 +0400 Subject: [PATCH] fix --- packages/tests/src/tests/add.test.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/packages/tests/src/tests/add.test.ts b/packages/tests/src/tests/add.test.ts index b1e0e84c3c..a6c5e21ed9 100644 --- a/packages/tests/src/tests/add.test.ts +++ b/packages/tests/src/tests/add.test.ts @@ -264,7 +264,9 @@ describe("shadcn add", () => { }) it("should add monorepo components and rewrite app-local imports with package imports", async () => { - const fixturePath = await createFixtureTestDirectory("vite-monorepo-imports") + const fixturePath = await createFixtureTestDirectory( + "vite-monorepo-imports" + ) const result = await npxShadcn( fixturePath, @@ -309,7 +311,9 @@ describe("shadcn add", () => { }, 300000) it("should preview monorepo adds without writing files", async () => { - const fixturePath = await createFixtureTestDirectory("vite-monorepo-imports") + const fixturePath = await createFixtureTestDirectory( + "vite-monorepo-imports" + ) const result = await npxShadcn( fixturePath, @@ -319,7 +323,9 @@ describe("shadcn add", () => { expect(result.exitCode).toBe(0) expect(result.stdout).toContain("shadcn add login-03 (dry run)") - expect(result.stdout).toContain("../../packages/ui/src/components/button.tsx") + expect(result.stdout).toContain( + "../../packages/ui/src/components/button.tsx" + ) expect(result.stdout).toContain("src/components/login-form.tsx") expect( await fs.pathExists( @@ -334,7 +340,9 @@ describe("shadcn add", () => { }, 300000) it("should show no changes for identical monorepo files with diff", async () => { - const fixturePath = await createFixtureTestDirectory("vite-monorepo-imports") + const fixturePath = await createFixtureTestDirectory( + "vite-monorepo-imports" + ) await npxShadcn( fixturePath,