diff --git a/scripts/register-parent-durand-rousseau-test.mjs b/tests/scripts/register-parent-durand-rousseau-test.mjs similarity index 97% rename from scripts/register-parent-durand-rousseau-test.mjs rename to tests/scripts/register-parent-durand-rousseau-test.mjs index ece7507..171d179 100644 --- a/scripts/register-parent-durand-rousseau-test.mjs +++ b/tests/scripts/register-parent-durand-rousseau-test.mjs @@ -5,7 +5,7 @@ * Les PNG dans ressources/Photos dépassent la limite JSON (~15 Mo) du serveur : réduction locale * via npx sharp-cli (resize 600 + JPEG q80) avant encodage base64. * - * Usage : node scripts/register-parent-durand-rousseau-test.mjs [BASE_URL] + * Usage : node tests/scripts/register-parent-durand-rousseau-test.mjs [BASE_URL] */ import fs from 'fs'; @@ -17,7 +17,7 @@ import { execSync } from 'child_process'; import { fileURLToPath } from 'url'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); -const repoRoot = path.join(__dirname, '..'); +const repoRoot = path.join(__dirname, '..', '..'); const photosDir = path.join(repoRoot, 'ressources', 'Photos'); function shrinkToJpeg(inputPath, label) { diff --git a/scripts/register-parent-lecomte-test.mjs b/tests/scripts/register-parent-lecomte-test.mjs similarity index 95% rename from scripts/register-parent-lecomte-test.mjs rename to tests/scripts/register-parent-lecomte-test.mjs index 5f9c3f3..674e5c1 100644 --- a/scripts/register-parent-lecomte-test.mjs +++ b/tests/scripts/register-parent-lecomte-test.mjs @@ -2,7 +2,7 @@ * POST /api/v1/auth/register/parent — jeu de test officiel David LECOMTE (père isolé). * Email : david.lecomte@ptits-pas.fr * - * Usage : node scripts/register-parent-lecomte-test.mjs [BASE_URL] + * Usage : node tests/scripts/register-parent-lecomte-test.mjs [BASE_URL] */ import fs from 'fs'; @@ -12,7 +12,7 @@ import http from 'http'; import { fileURLToPath } from 'url'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); -const repoRoot = path.join(__dirname, '..'); +const repoRoot = path.join(__dirname, '..', '..'); const photosDir = path.join(repoRoot, 'ressources', 'Photos'); function toDataUri(filePath) { diff --git a/scripts/register-parent-martin-test.mjs b/tests/scripts/register-parent-martin-test.mjs similarity index 94% rename from scripts/register-parent-martin-test.mjs rename to tests/scripts/register-parent-martin-test.mjs index a1253eb..acfcf77 100644 --- a/scripts/register-parent-martin-test.mjs +++ b/tests/scripts/register-parent-martin-test.mjs @@ -2,8 +2,8 @@ * POST /api/v1/auth/register/parent — jeu de test officiel famille MARTIN (docs/test-data + seed). * Emails canoniques : claire.martin@ptits-pas.fr, thomas.martin@ptits-pas.fr * - * Usage : node scripts/register-parent-martin-test.mjs [BASE_URL] - * Ex. : node scripts/register-parent-martin-test.mjs https://app.ptits-pas.fr + * Usage : node tests/scripts/register-parent-martin-test.mjs [BASE_URL] + * Ex. : node tests/scripts/register-parent-martin-test.mjs https://app.ptits-pas.fr */ import fs from 'fs'; @@ -13,7 +13,7 @@ import http from 'http'; import { fileURLToPath } from 'url'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); -const repoRoot = path.join(__dirname, '..'); +const repoRoot = path.join(__dirname, '..', '..'); const photosDir = path.join(repoRoot, 'ressources', 'Photos'); function toDataUri(filePath) {