This commit is contained in:
shadcn
2026-02-02 13:14:09 +04:00
parent abfa2ddb74
commit 540cd031c3
4 changed files with 397 additions and 218 deletions

View File

@@ -129,7 +129,7 @@ describe("shadcn init - vite-app", () => {
"utf-8"
)
expect(alertDialogContent).toContain(
'import { buttonVariants } from "#custom/components/ui/button"'
'import { Button } from "#custom/components/ui/button"'
)
expect(alertDialogContent).toContain(
'import { cn } from "#custom/lib/utils"'

View File

@@ -182,7 +182,6 @@ describe("shadcn view", () => {
expect(parsed[0]).toMatchObject({
name: "button",
type: "registry:ui",
dependencies: ["@radix-ui/react-slot"],
files: expect.arrayContaining([
expect.objectContaining({
path: "registry/new-york-v4/ui/button.tsx",
@@ -209,7 +208,6 @@ describe("shadcn view", () => {
{
name: "alert-dialog",
type: "registry:ui",
dependencies: ["@radix-ui/react-alert-dialog"],
registryDependencies: ["button"],
files: expect.arrayContaining([
expect.objectContaining({