From 7444ac7e2fa3e561cf458f3372151a719c5f6471 Mon Sep 17 00:00:00 2001 From: flipvanhaaren Date: Fri, 2 Oct 2026 09:19:18 +0200 Subject: [PATCH] test: assert same-origin dev config in the release smoke test The smoke test still expected PORT=4010 in backend/.env and a backendUrl on its own port, both dropped in #25. It runs in prepublishOnly, so it failed the publish step of the 0.3.8 and 0.3.9 releases and npm is still on 0.3.7. It now asserts the same-origin URLs, the offset devPorts block and that no PORT= line overrides them. Co-Authored-By: Claude Opus 5.5 --- tests/release-smoke.test.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/release-smoke.test.ts b/tests/release-smoke.test.ts index a6c4a6c..cb4a9e5 100644 --- a/tests/release-smoke.test.ts +++ b/tests/release-smoke.test.ts @@ -85,12 +85,16 @@ describe('release smoke', () => { expect(backendEnv).toContain('DB_TEST_PORT=5444'); expect(backendEnv).toContain('DATABASE_URL=postgres://runtime_role:dev_password@0.0.0.0:5442/postgres'); expect(backendEnv).toContain('ADMIN_EMAIL=admin@smoke-app.com'); - expect(backendEnv).toContain('PORT=4010'); + // Service ports come from devPorts; a PORT= line would override the offset. + expect(backendEnv).not.toMatch(/^PORT=/m); expect(developmentConfig).toContain("slug: 'smoke-app-development'"); expect(developmentConfig).toContain("frontendUrl: 'http://localhost:3010'"); - expect(developmentConfig).toContain("backendUrl: 'http://localhost:4010'"); - expect(developmentConfig).toContain("backendAuthUrl: 'http://localhost:4010/auth'"); + expect(developmentConfig).toContain("backendUrl: 'http://localhost:3010/api'"); + expect(developmentConfig).toContain("backendAuthUrl: 'http://localhost:3010/api/auth'"); + expect(developmentConfig).toContain( + 'devPorts: { frontend: 3010, api: 4010, cdcHealth: 4011, yjs: 4012, mcp: 4013, oauth: 4014, internal: 4015, jobs: 4016 }', + ); // Git steps run for real now — assert the repo was initialized, the root commit carries // the `Cella-Base:` provenance trailer the sync CLI bootstraps its first merge-base from,