From df954620949c45a60ce08995a11b18fd7a65a878 Mon Sep 17 00:00:00 2001 From: Marcel Raddatz Date: Fri, 3 Apr 2026 09:30:19 +0200 Subject: [PATCH] refactor(staples): convert dynamic userEvent import to static in CategorySection test Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/lib/onboarding/CategorySection.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/onboarding/CategorySection.test.ts b/frontend/src/lib/onboarding/CategorySection.test.ts index b37579f..46c0347 100644 --- a/frontend/src/lib/onboarding/CategorySection.test.ts +++ b/frontend/src/lib/onboarding/CategorySection.test.ts @@ -1,5 +1,6 @@ import { describe, it, expect, vi } from 'vitest'; import { render, screen } from '@testing-library/svelte'; +import { userEvent } from '@testing-library/user-event'; import CategorySection from './CategorySection.svelte'; const mockIngredients = [ @@ -34,7 +35,6 @@ describe('CategorySection', () => { }); it('calls onToggle with ingredient id and new value when chip is clicked', async () => { - const { userEvent } = await import('@testing-library/user-event'); const user = userEvent.setup(); const onToggle = vi.fn(); render(CategorySection, {