Commit Graph

8 Commits

Author SHA1 Message Date
8f395b972c test: add comprehensive test suite for components, composables, and pages
Add 16 new test files covering:
- Composables: useBackend, useMeta, useDataJson
- Type classes: QueryResult, ResumeContent
- UI components: BadgeList, BadgeListCard
- Navbar components: LanguageSwitcher, ThemeSwitcher
- App components: AppNavbar, AppFooter
- VocalSynth components: Projects, Tools
- Pages: contact, resume, [...slug]

Tests focus on pure logic, interfaces, and component rendering where
possible, avoiding complex mocking of Nuxt auto-imported composables.

Total: 174 tests across 17 test files (including existing useApi tests).
2026-02-05 12:43:48 +01:00
3b6578daa2 refactor(tests): remove unnecessary parameters from useApi tests
Simplify POST, PUT, and PATCH test calls by removing redundant empty
object and boolean parameters.
2026-02-05 12:19:12 +01:00
7ae22106fa fix(tests): properly mock $fetch in useApi tests
Replace vi.mocked($fetch) with a properly stubbed global mock
using vi.stubGlobal() to fix test failures
2026-02-05 12:19:12 +01:00
ea35c524e2 feat(contact): add toast notifications for form feedback
- Add toast notifications for contact form success/error responses
- Add toast notifications for backend errors in AppFooter
- Add accessibility explanation for honeypot field
- Add loading state to contact form submit button
- Add i18n translations for toast messages (en/fr)
- Fix honeypot input missing v-model binding
2026-02-05 12:19:12 +01:00
dfec7bb869 feat(pages): add contact page 2025-12-07 20:02:35 +01:00
0101592145 feat(useApi): better interface 2025-11-20 12:00:28 +01:00
1563ab1f45 fix: incorrect types now fixed 2025-11-20 11:21:26 +01:00
17fbe1d507 chore: separate frontend from backend 2025-11-15 14:06:37 +01:00