test: add browser-based unit tests for helpers, i18n, router

This commit is contained in:
2026-02-05 15:30:58 +01:00
parent bd7a259d72
commit 0b0185deb1
7 changed files with 658 additions and 1 deletions

View File

@@ -93,6 +93,18 @@ npx live-server
Öffne http://localhost:8080
### Tests ausführen
```bash
# Server starten
python3 -m http.server 8080
# Im Browser öffnen
# http://localhost:8080/tests/
```
Die Tests laufen im Browser und nutzen einen minimalen Test-Runner ohne externe Dependencies.
### Projektstruktur
```
@@ -129,6 +141,10 @@ dgray/
│ ├── de.json # Deutsch
│ ├── en.json # English
│ └── fr.json # Français
├── tests/
│ ├── index.html # Test-Runner UI
│ ├── test-runner.js # Test-Framework
│ └── *.test.js # Unit Tests
└── assets/
└── fonts/ # Self-hosted Fonts
```