GitLab CI runs each script line in a separate shell context, so sourcing .env on one line doesn't carry to the next. Use export $(grep ...) on the same line as jest to ensure DATABASE_URL is in the process environment.
14 KiB
14 KiB