From 824a35ada184dcda1cd7d059ef3458bb758e1502 Mon Sep 17 00:00:00 2001 From: JEM Date: Tue, 12 Nov 2024 02:54:31 -0600 Subject: [PATCH] test(snapshots): update test snapshots for consistency (#5801) Updated snapshot components to use `React.ComponentProps` instead of custom interfaces for `input` and `Dialog` components. This simplifies the code by leveraging built-in React types, ensuring consistency and reducing potential errors arising from custom definitions. --- .../registry-resolve-items-tree.test.ts.snap | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/shadcn/test/utils/schema/__snapshots__/registry-resolve-items-tree.test.ts.snap b/packages/shadcn/test/utils/schema/__snapshots__/registry-resolve-items-tree.test.ts.snap index 70f941d73..4f950ec2b 100644 --- a/packages/shadcn/test/utils/schema/__snapshots__/registry-resolve-items-tree.test.ts.snap +++ b/packages/shadcn/test/utils/schema/__snapshots__/registry-resolve-items-tree.test.ts.snap @@ -28,6 +28,7 @@ export function cn(...inputs: ClassValue[]) { } ", "path": "lib/utils.ts", + "target": "", "type": "registry:lib", }, { @@ -238,10 +239,7 @@ export { Button, buttonVariants } import { cn } from "@/lib/utils" -export interface InputProps - extends React.InputHTMLAttributes {} - -const Input = React.forwardRef( +const Input = React.forwardRef>( ({ className, type, ...props }, ref) => { return ( { +const CommandDialog = ({ children, ...props }: DialogProps) => { return (