From ab1a19bcee26e89b408475d10d564c535a4eb5b8 Mon Sep 17 00:00:00 2001 From: Johnpaul Date: Wed, 21 Jan 2026 02:43:54 +0100 Subject: [PATCH] test: remove any type from ApiKeyForm test mountComponent helper - Replace `props: any` with ComponentProps - Import ComponentProps from vue-component-type-helpers - Linter optimized to direct ComponentProps usage Part of Phase 2 - Quick wins (1 instance removed) --- src/components/dialog/content/signin/ApiKeyForm.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/dialog/content/signin/ApiKeyForm.test.ts b/src/components/dialog/content/signin/ApiKeyForm.test.ts index 5d6a726b8..4d073cb08 100644 --- a/src/components/dialog/content/signin/ApiKeyForm.test.ts +++ b/src/components/dialog/content/signin/ApiKeyForm.test.ts @@ -1,3 +1,5 @@ +import type { ComponentProps } from 'vue-component-type-helpers' + import { Form } from '@primevue/forms' import { mount } from '@vue/test-utils' import { createPinia } from 'pinia' @@ -63,7 +65,7 @@ describe('ApiKeyForm', () => { mockLoading.mockReset() }) - const mountComponent = (props: any = {}) => { + const mountComponent = (props: ComponentProps = {}) => { return mount(ApiKeyForm, { global: { plugins: [PrimeVue, createPinia(), i18n],