From 9b81fee5bd1eceea6466ef5c020cb73933e4679d Mon Sep 17 00:00:00 2001 From: CJ Brewer Date: Thu, 3 Dec 2026 20:05:04 -0700 Subject: [PATCH] test(campaigns): set APP_URL in the campaigns tests' own setup The file made unsubscribe links without setting APP_URL, and passed only when another test file had set it earlier in the same run. When it ran first of the integration files, 12 tests failed and the release's verify stopped before publishing 0.12.0. Co-Authored-By: Claude Fable 5.2 --- packages/spools/tests/integration/campaigns.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/spools/tests/integration/campaigns.test.ts b/packages/spools/tests/integration/campaigns.test.ts index 8bfaeb3..c8e6a9a 100644 --- a/packages/spools/tests/integration/campaigns.test.ts +++ b/packages/spools/tests/integration/campaigns.test.ts @@ -105,6 +105,8 @@ async function contact(name: string, extra: Record = {}) { beforeAll(async () => { process.env['APP_SECRET'] = 's'.repeat(40) + // Unsubscribe links need the CRM's address. Set here, not left to whichever test file ran before. + process.env['APP_URL'] = 'https://crm.example.com' await installStandIns({ sequences: Sequences.layerTest(() => sequences),