Files
Sauci/scripts/test-supabase.sh
jjbrunton 01bb8225ae chore(harness): make repository agent-ready
Add concise routed context, task-aware agent roles, focused skills, and structured learning promotion.\n\nUnify local development and workspace tooling, add layered test and E2E verification, harden MCP authentication, and gate deployment behind verification and explicit production promotion.
2026-08-27 20:58:48 +01:00

17 lines
532 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
command -v deno >/dev/null 2>&1 || {
echo "Deno is required for Supabase function tests: https://docs.deno.com/runtime/getting_started/installation/" >&2
exit 1
}
if ! (cd "$ROOT" && npx supabase status --workdir apps >/dev/null 2>&1); then
echo "Local Supabase is not running. Start it with scripts/dev-local.sh up." >&2
exit 1
fi
cd "$ROOT/apps/supabase/tests"
"$ROOT/scripts/with-local-supabase-env.sh" tests deno task test