LifeMate — Personal, Family & Learning Companion
feat/learning-content-operations
chore/phase1-repository-cleanup
deploy/stable-web-apk
deployment-static
design/mobile-accessibility-v2
design/mobile-navigation-review
docs/child-education-access-decision
docs/offline-data-rescue-options
docs/owner-guide-and-delivery-plan
docs/phase1-policy-options
docs/public-review-live-2026-10-15
feat/aparat-learning-library
feat/child-device-safety
feat/child-identity-schema
feat/flutter-mobile-navigation
feat/learning-content-operations
feat/local-signing-preflight
feat/online-family-stage0
feat/personal-encrypted-recovery
feat/private-planner-series-api
feat/public-review-page
feat/standalone-weekly-planner
feat/weekly-planner-android
final-feature-1/iran-family-school
fix/auth-abuse-expiry-safety
fix/auth-expiry-after-lock
fix/backend-request-safety
fix/lifeguide-bootstrap-naming-ci
fix/lifeguide-pages-qa-base-preflight
fix/lifeguide-qa-pages-env-deployment
fix/local-task-persistence
fix/managed-child-session-boundary
fix/personal-jalali-dates
fix/personal-notification-controls
fix/personal-upgrade-delivery-guard
fix/sms-approval-gates
fix/study-duration-display
infra/cloudflare-neon-migration
infra/lifeguide-cloudflare-qa
infra/lifeguide-github-pages-qa
infra/lifeguide-supabase-qa
main
phase-1/foundation-completion
phase-2/product-foundation-identity
phase-3/planner-school-family-core
phase-4/ai-learning-wellbeing
phase-5/hardening-observability-release
test/android-reminder-acceptance
test/personal-notification-settings
test/personal-recovery-acceptance
test/role-entry-apk
| 1 | import { readdirSync } from 'node:fs'; |
| 2 | import { spawnSync } from 'node:child_process'; |
| 3 | |
| 4 | // Tests never inherit an operator's live delivery or AI configuration. |
| 5 | // Database/JWT fixture inputs remain available; individual fixtures can inject local providers. |
| 6 | const env = { ...process.env, NODE_ENV: 'test', SMS_PROVIDER: 'disabled' }; |
| 7 | for (const key of ['SMS_PROVIDER_URL', 'SMS_PROVIDER_TOKEN', 'EMAIL_FROM', 'RESEND_API_KEY', |
| 8 | 'SMTP_HOST', 'SMTP_PORT', 'SMTP_USER', 'SMTP_PASSWORD', 'AI_API_KEY', 'AI_BASE_URL', 'AI_MODEL', 'OPENAI_API_KEY']) env[key] = ''; |
| 9 | env.SMTP_SECURE = 'false'; |
| 10 | const files = readdirSync(new URL('../tests/', import.meta.url)) |
| 11 | .filter((file) => !file.startsWith('.') && file.endsWith('.test.js')).sort() |
| 12 | .map((file) => `tests/${file}`); |
| 13 | const result = spawnSync(process.execPath, ['--test', ...process.argv.slice(2), ...files], { |
| 14 | cwd: new URL('../', import.meta.url), env, stdio: 'inherit', |
| 15 | }); |
| 16 | if (result.error) throw new Error('test_runner_start_failed'); |
| 17 | process.exit(result.status ?? 1); |