test(cowork-service): skip integration suite without credentials
This commit is contained in:
parent
5c08832a3e
commit
6c2e9a67ca
@ -1,12 +1,15 @@
|
|||||||
import { afterAll, beforeAll, describe, expect, it } from 'vitest';
|
import { afterAll, beforeAll, describe, expect, it } from 'vitest';
|
||||||
import { createServer, type Server } from 'node:http';
|
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 platformBaseUrl = process.env.PLATFORM_SERVICE_URL ?? 'http://localhost:4003/api';
|
||||||
const coworkBaseUrl = process.env.COWORK_SERVICE_URL ?? 'http://localhost:4009';
|
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';
|
const integrationProductId = 'clawcowork';
|
||||||
|
|
||||||
type JsonRecord = Record<string, unknown>;
|
type JsonRecord = Record<string, unknown>;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user