diff --git a/tests/components/ct-react-vite/package.json b/tests/components/ct-react-vite/package.json index a2d9e02547..4126048dbe 100644 --- a/tests/components/ct-react-vite/package.json +++ b/tests/components/ct-react-vite/package.json @@ -5,7 +5,8 @@ "scripts": { "dev": "vite", "build": "tsc && vite build", - "preview": "vite preview" + "preview": "vite preview", + "typecheck": "tsc --noEmit" }, "dependencies": { "react": "^17.0.2", diff --git a/tests/components/ct-react-vite/src/components/Button.tsx b/tests/components/ct-react-vite/src/components/Button.tsx index 2b44784ac4..8785b878d0 100644 --- a/tests/components/ct-react-vite/src/components/Button.tsx +++ b/tests/components/ct-react-vite/src/components/Button.tsx @@ -4,7 +4,7 @@ type ButtonProps = { title: string; onClick?(props: string): void; className?: string; -} & ButtonHTMLAttributes; +} & Omit, 'onClick'>; export default function Button({ onClick, title, ...attributes }: ButtonProps) { return ) + const messages: string[] = [] + const component = await mount( -