Priority: high
Description
The validateEnv() function must be tested to ensure it correctly identifies missing and malformed variables and exits with the right error messages.
Acceptance Criteria
- Test: all required variables present passes validation
- Test: missing required variable throws with the variable name
- Test:
ADMIN_SECRET_KEY not starting with 'S' throws with a format error
- Test:
STELLAR_NETWORK set to an invalid value throws
- Test: validation function is callable without side effects in test environment
Priority: high
Description
The
validateEnv()function must be tested to ensure it correctly identifies missing and malformed variables and exits with the right error messages.Acceptance Criteria
ADMIN_SECRET_KEYnot starting with 'S' throws with a format errorSTELLAR_NETWORKset to an invalid value throws