Add JS tests, refactor SitemapController, extract JS modules

- Extract mobile-menu.js and tabs.js from app.js
- Add Vitest tests with happy-dom and v8 coverage (100% on modules)
- Add JS test step to CI frontend and SonarQube workflows
- SonarQube: add JS lcov coverage report path
- SitemapController: extract URLSET_TEMPLATE constant, deduplicate methods

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-19 00:19:34 +01:00
parent d34a684552
commit 922e8c5e02
26 changed files with 1632 additions and 41 deletions

View File

@@ -6,4 +6,5 @@ sonar.php.version=8.4
sonar.sourceEncoding=UTF-8
sonar.php.coverage.reportPaths=coverage.xml
sonar.tests=tests
sonar.test.inclusions=tests/**/*.php
sonar.test.inclusions=tests/**/*.php,tests/js/**/*.test.js
sonar.javascript.lcov.reportPaths=coverage/lcov.info