Deep-audit + build-out across all products to fully-usable state; all typecheck clean. - gitgram-web (99): wire Store feature to real endpoints, close 9 gaps - gitgram-backend (100): close 8 flow gaps, document infra-provisioning items - gitgram-mobile (90): fix API base-URL/path mismatch (404s) + copy proximity components into components/proximity wired to real screens; 15 gaps, +react-native-svg - aitm-core (95): wire natural-language CLI flow end-to-end; 11 gaps - aitm-api (97): fix teams metadata runtime bug; copy a2a-js server/client/grpc into src/a2a and wire A2A route; crates.io package search; 8 gaps - aitm-mcp (100): fix A2A client/server card mismatch; 9 gaps - aitm-website (95): build missing docs routes; 9 gaps Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
29 lines
1003 B
Bash
Executable File
29 lines
1003 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# =============================================================================
|
|
# Run the Gitgram backend E2E suite against an ephemeral Postgres + Redis.
|
|
#
|
|
# Spins up docker-compose.test.yml, points DATABASE_URL / REDIS_URL at the
|
|
# containers, runs the E2E Jest config, and tears the containers down.
|
|
# =============================================================================
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
BACKEND_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
|
COMPOSE_FILE="${BACKEND_DIR}/docker-compose.test.yml"
|
|
|
|
export DATABASE_URL="postgresql://gitgram_test:gitgram_test@localhost:5433/gitgram_test"
|
|
export REDIS_URL="redis://localhost:6380"
|
|
export NODE_ENV="test"
|
|
|
|
cleanup() {
|
|
docker compose -f "${COMPOSE_FILE}" down -v >/dev/null 2>&1 || true
|
|
}
|
|
trap cleanup EXIT
|
|
|
|
echo "==> Starting ephemeral Postgres + Redis"
|
|
docker compose -f "${COMPOSE_FILE}" up -d --wait
|
|
|
|
echo "==> Running E2E suite"
|
|
cd "${BACKEND_DIR}"
|
|
npm run test:e2e
|