cd backend
npm run test:smokeexport SUPABASE_URL="your-url"
export SUPABASE_SERVICE_ROLE_KEY="your-key"
export SMOKE_TEST_USER_EMAIL="smoke-test@syncro.test"
export SMOKE_TEST_USER_PASSWORD="SecurePassword123!"
npm run setup:smoke-user| Secret | Description | Example |
|---|---|---|
SMOKE_TEST_USER_EMAIL |
Test user email | smoke-test@syncro.test |
SMOKE_TEST_USER_PASSWORD |
Test user password | SecurePassword123! |
BACKEND_URL |
Backend API URL | https://api.syncro.app |
NEXT_PUBLIC_SUPABASE_URL |
Supabase URL | https://xxx.supabase.co |
NEXT_PUBLIC_SUPABASE_ANON_KEY |
Supabase anon key | eyJhbG... |
- β Login flow
- β Dashboard access
- β Subscription list
- β API health endpoints
- β Payment/billing APIs
- β Security & authentication
- β Database connectivity
# Run all smoke tests
npm run test:smoke
# Run with verbose output
npm run test:smoke:verbose
# Run specific test
npm run test:smoke -- --testNamePattern="Authentication"
# Setup smoke test user
npm run setup:smoke-user| Issue | Solution |
|---|---|
| Missing env vars | Check GitHub secrets or local .env |
| Auth failed | Verify test user exists, run setup:smoke-user |
| Timeout | Increase wait time or check service status |
| RLS test failed | Expected - RLS should block cross-user access |
- All tests pass β
- Execution time < 2 minutes β±οΈ
- No authentication errors π
- All critical paths verified π£οΈ
Staging:
- PR comment added with details
- Review workflow logs
- Fix before merging
Production:
- GitHub issue created automatically
- Labeled
critical,production - Consider rollback immediately
See SMOKE_TESTS.md for complete details.