chore: déplacer les scripts d'inscription parent vers tests/scripts
repoRoot corrigé (../..) ; usage: node tests/scripts/register-parent-*.mjs Made-with: Cursor
This commit is contained in:
parent
62b2466cce
commit
73efac482f
@ -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) {
|
||||
@ -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) {
|
||||
@ -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) {
|
||||
Loading…
x
Reference in New Issue
Block a user