Commit Graph

7 Commits

Author SHA1 Message Date
amianthus
f90a9d0456 fix(test-setup): 🐛 pass org name when bootstrapping test org via afterOrgCreated
The synthetic insertedOrg passed to afterOrgCreated on the new-org
branch carried id/slug/createdAt but not name, so the Stripe Connect
account was created with display_name: undefined. Adds
TEST_ORG_CONFIG.name to the synthetic payload.
2026-05-16 15:16:24 +01:00
amianthus
aaa754ae02 feat(test-setup): 🎸 run afterOrgCreated for test org and persist stable pkey to env
createTestOrg now calls the production afterOrgCreated hook directly so
the test org goes through the same bootstrap as real orgs (Stripe
Connect, Svix, OrgService.update). Both org branches gate
createStripeAccount on the existing test_stripe_connect to stay
idempotent across re-runs. Pins TEST_ORG_PUBLISHABLE_KEY (a real
KSUID-generated am_pk_test_* value) and persists
UNIT_TEST_AUTUMN_PUBLIC_KEY plus the auto-generated
UNIT_TEST_AUTUMN_SECRET_KEY to server/.env.local + server/.env so test
clients pick them up. Deletes ensureDefaultStripeAccount.ts (replaced by
the gated afterOrgCreated call).
2026-05-16 15:08:29 +01:00
amianthus
25e920bbd3 feat(dw): 🎸 parallel agent worktrees with isolated infra + test harness
bun dw spins up a fully isolated per-worktree dev stack: Neon DB branch,
Dragonfly + ElasticMQ via docker compose, portless aliases, tmux
session, and emulate.dev Google OAuth. Workers, dev server, vite,
checkout, and stripe-listen run as concurrently siblings. bun setup-test
auto-runs on first dw and seeds unit-test-org via
clearOrg+setupOrg+ensureDefaultStripeAccount with 13 features + team
invites for all 5 useautumn.com members. Hardcoded localhost URLs in
test scenarios now read AUTUMN_TEST_BASE_URL/AUTUMN_TEST_VITE_URL.
preload-env.ts loads .env.local so bun t/cm/setup-test route to the
worktree server. 1265-line scripts/dw.ts split into scripts/dw/ module
(index + commands + helpers). server/src/db/initDrizzle.ts reverted to
upstream (search_path concerns solved by per-branch Neon isolation).
Workers enabled in agent worktrees now that SQS is per-worktree via
ElasticMQ.
2026-05-16 02:02:43 +01:00
John Yeo
cb05d169a2 wip 2026-01-23 17:13:19 +00:00
John Yeo
b823a1f0c9 chore: updated test setup script 2025-12-18 10:30:34 +00:00
John Yeo
3d47e1effa wip 2025-11-12 11:01:19 +00:00
John Yeo
dc90d1dab4 feat: set up test and run tests easier 2025-10-20 10:32:26 +01:00