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, {