From ed430252d1068a508e629ca913a6bb3d063d3554 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 19 May 2026 23:12:07 +0200 Subject: [PATCH] refactor(transcription): rename @mention test-host to test-fixture Test-only helper colocated with production code now has a visible .test-fixture.svelte boundary so eslint-boundaries and code search do not confuse it for a production component. The internal alias was also bumped from *Host to *Fixture for consistency. No behaviour change. Felix #3 / Nora #3 on PR #629. Co-Authored-By: Claude Opus 4.7 --- .../src/lib/shared/discussion/MentionDropdown.svelte.test.ts | 4 ++-- ...n.test-host.svelte => MentionDropdown.test-fixture.svelte} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename frontend/src/lib/shared/discussion/{MentionDropdown.test-host.svelte => MentionDropdown.test-fixture.svelte} (100%) diff --git a/frontend/src/lib/shared/discussion/MentionDropdown.svelte.test.ts b/frontend/src/lib/shared/discussion/MentionDropdown.svelte.test.ts index 0b9e24f8..5a97fb18 100644 --- a/frontend/src/lib/shared/discussion/MentionDropdown.svelte.test.ts +++ b/frontend/src/lib/shared/discussion/MentionDropdown.svelte.test.ts @@ -2,7 +2,7 @@ import { describe, it, expect, vi, afterEach } from 'vitest'; import { cleanup, render } from 'vitest-browser-svelte'; import { page, userEvent } from 'vitest/browser'; import MentionDropdown from './MentionDropdown.svelte'; -import MentionDropdownHost from './MentionDropdown.test-host.svelte'; +import MentionDropdownFixture from './MentionDropdown.test-fixture.svelte'; import { m } from '$lib/paraglide/messages.js'; import type { components } from '$lib/generated/api'; @@ -199,7 +199,7 @@ describe('MentionDropdown — search input', () => { it('keeps the user-edited search value when editorQuery changes after the takeover (Felix on PR #629)', async () => { let setEditorQuery!: (q: string) => void; - render(MentionDropdownHost, { + render(MentionDropdownFixture, { model: baseModel(), initialEditorQuery: 'WdG', onReady: (s: (q: string) => void) => { diff --git a/frontend/src/lib/shared/discussion/MentionDropdown.test-host.svelte b/frontend/src/lib/shared/discussion/MentionDropdown.test-fixture.svelte similarity index 100% rename from frontend/src/lib/shared/discussion/MentionDropdown.test-host.svelte rename to frontend/src/lib/shared/discussion/MentionDropdown.test-fixture.svelte