From 6e5c5bbec374934cd7a1fa2d7e5b5007c446ad83 Mon Sep 17 00:00:00 2001 From: "bert.hausmans" Date: Sat, 16 May 2026 21:55:14 +0200 Subject: [PATCH] fix(gui-v2): rename AppDialog test stub off reserved HTML name "Dialog" vue/no-reserved-component-names is error-level; is native HTML. Matching is via the stubs key + findComponent reference, not the stub's own name, so the rename is behaviour-neutral (14/14 tests still pass). Co-Authored-By: Claude Opus 4.7 --- .../src/components-v2/shared/__tests__/AppDialog.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/app/src/components-v2/shared/__tests__/AppDialog.spec.ts b/apps/app/src/components-v2/shared/__tests__/AppDialog.spec.ts index 405c3261..f030bdc0 100644 --- a/apps/app/src/components-v2/shared/__tests__/AppDialog.spec.ts +++ b/apps/app/src/components-v2/shared/__tests__/AppDialog.spec.ts @@ -37,7 +37,12 @@ import AppDialog from '@/components-v2/shared/AppDialog.vue' * without inspecting internal Vue internals. */ const DialogStub = defineComponent({ - name: 'Dialog', + // Not `name: 'Dialog'` — is a native HTML element and + // vue/no-reserved-component-names (error) forbids it. VTU matches this + // stub via the `stubs: { Dialog: DialogStub }` key (AppDialog's import + // name) and `findComponent(DialogStub)` by reference, NOT this `name`, + // so renaming it here is behaviour-neutral. + name: 'DialogStub', props: { visible: { type: Boolean, default: false }, modal: { type: Boolean, default: false },