test(server): ajoute tests fonctionnels sync et fixtures versionnees (#187)

Fixe .gitignore pour exclure .build-home/ et .pub-cache-local/ des
environnements locaux de build (bruit non versionne). Documente le
checklist d'integration serveur et met a jour le README en consequence.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-31 16:58:07 +02:00
parent 05d91e3e84
commit 89558808af
16 changed files with 989 additions and 12 deletions

View File

@ -0,0 +1,51 @@
{
"schemaVersion": 5,
"id": "exercise-full-combo",
"name": "Intervals complex",
"type": "mixed",
"category": "full_body",
"media": {
"coverAssetId": "media-cover-1",
"videoAssetId": "media-video-1"
},
"steps": [
{
"id": "step-row",
"order": 0,
"title": "Row",
"body": "Complete calories before moving on.",
"defaultDurationSeconds": 60
},
{
"id": "step-thruster",
"order": 1,
"title": "Thruster",
"body": "Break sets only if form degrades.",
"defaultReps": 15
}
],
"score": {
"mode": "for_time",
"unit": "seconds",
"capSeconds": 900
},
"chrono": {
"mode": "elapsed",
"autoStart": true
},
"timers": {
"preparationSeconds": 20,
"workSeconds": 180,
"restSeconds": 60
},
"chainOverrides": {
"nextExerciseId": "exercise-cooldown",
"inheritRest": false
},
"legacy": {
"unknownClientField": {
"nested": ["preserve", 1, true, null]
}
},
"updatedAt": "2026-07-19T10:20:00.000Z"
}

View File

@ -0,0 +1,8 @@
{
"schemaVersion": 1,
"id": "exercise-minimal",
"name": "Air squat",
"type": "strength",
"category": "legs",
"updatedAt": "2026-07-19T10:00:00.000Z"
}

View File

@ -0,0 +1,17 @@
{
"schemaVersion": 3,
"id": "exercise-score-chrono",
"name": "Shuttle run",
"type": "conditioning",
"score": {
"mode": "rounds_reps",
"unit": "reps",
"target": 120
},
"chrono": {
"mode": "countdown",
"durationSeconds": 600,
"warningSeconds": [60, 10]
},
"updatedAt": "2026-07-19T10:10:00.000Z"
}

View File

@ -0,0 +1,21 @@
{
"schemaVersion": 2,
"id": "exercise-with-steps",
"name": "Kettlebell swing",
"type": "strength",
"steps": [
{
"id": "step-setup",
"order": 0,
"title": "Setup",
"body": "Hinge with the bell slightly in front of the feet."
},
{
"id": "step-drive",
"order": 1,
"title": "Drive",
"body": "Extend the hips and let the bell float to chest height."
}
],
"updatedAt": "2026-07-19T10:05:00.000Z"
}

View File

@ -0,0 +1,18 @@
{
"schemaVersion": 4,
"id": "exercise-with-timers",
"name": "Tempo bench press",
"type": "strength",
"timers": {
"preparationSeconds": 15,
"workSeconds": 45,
"restSeconds": 90,
"transitionSeconds": 10
},
"defaultTargets": {
"sets": 5,
"reps": 5,
"weightKg": 80
},
"updatedAt": "2026-07-19T10:15:00.000Z"
}