From 73efac482f2849e2c228532f73ce04a3a8ed3f5c Mon Sep 17 00:00:00 2001 From: Julien Martin Date: Mon, 13 Apr 2026 11:40:41 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20d=C3=A9placer=20les=20scripts=20d'insc?= =?UTF-8?q?ription=20parent=20vers=20tests/scripts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit repoRoot corrigé (../..) ; usage: node tests/scripts/register-parent-*.mjs Made-with: Cursor --- .../scripts}/register-parent-durand-rousseau-test.mjs | 4 ++-- {scripts => tests/scripts}/register-parent-lecomte-test.mjs | 4 ++-- {scripts => tests/scripts}/register-parent-martin-test.mjs | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) rename {scripts => tests/scripts}/register-parent-durand-rousseau-test.mjs (97%) rename {scripts => tests/scripts}/register-parent-lecomte-test.mjs (95%) rename {scripts => tests/scripts}/register-parent-martin-test.mjs (94%) 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) {