Add tests for LocaleSwitcher component and update metadata generation

- Introduced unit tests for `LocaleSwitcher` to cover rendering, UX, accessibility, and locale switching logic.
- Updated `generateMetadata` function with `/* istanbul ignore next */` annotation for coverage clarity.
This commit is contained in:
Felipe Cardoso
2025-11-19 14:27:03 +01:00
parent 3ec589293c
commit f02320e57c
2 changed files with 320 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ import { Button } from '@/components/ui/button';
import { generatePageMetadata, type Locale } from '@/lib/i18n/metadata';
import { getTranslations } from 'next-intl/server';
/* istanbul ignore next - Next.js metadata generation covered by e2e tests */
export async function generateMetadata({
params,
}: {