From 6c2e9a67ca49962249e54db53aca185dc2357c68 Mon Sep 17 00:00:00 2001 From: Saravana Achu Mac Date: Fri, 3 Apr 2026 13:58:28 -0700 Subject: [PATCH] test(cowork-service): skip integration suite without credentials --- .../cowork-service/e2e/ecosystem-integration.test.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/services/cowork-service/e2e/ecosystem-integration.test.ts b/services/cowork-service/e2e/ecosystem-integration.test.ts index a2823777..4a31d2d2 100644 --- a/services/cowork-service/e2e/ecosystem-integration.test.ts +++ b/services/cowork-service/e2e/ecosystem-integration.test.ts @@ -1,12 +1,15 @@ import { afterAll, beforeAll, describe, expect, it } from 'vitest'; import { createServer, type Server } from 'node:http'; -const runIntegration = Boolean(process.env.INTEGRATION_TESTS); +const integrationEmail = process.env.INTEGRATION_TEST_EMAIL; +const integrationPassword = process.env.INTEGRATION_TEST_PASSWORD; + +const runIntegration = Boolean( + process.env.INTEGRATION_TESTS && integrationEmail && integrationPassword +); const platformBaseUrl = process.env.PLATFORM_SERVICE_URL ?? 'http://localhost:4003/api'; const coworkBaseUrl = process.env.COWORK_SERVICE_URL ?? 'http://localhost:4009'; -const integrationEmail = process.env.INTEGRATION_TEST_EMAIL; -const integrationPassword = process.env.INTEGRATION_TEST_PASSWORD; const integrationProductId = 'clawcowork'; type JsonRecord = Record;