integration tests
Some checks failed
CI / lint-typecheck (pull_request) Failing after 4m51s
CI / tests (pull_request) Has been skipped
CI / contract-tests (pull_request) Has been skipped
CI / e2e-tests (pull_request) Has been skipped
CI / comment-pr (pull_request) Has been skipped
CI / commit-types (pull_request) Has been skipped

This commit is contained in:
2026-01-23 00:46:34 +01:00
parent eaf51712a7
commit a0f41f242f
53 changed files with 3214 additions and 8820 deletions

View File

@@ -48,7 +48,10 @@ export class IntegrationTestHarness {
this.docker = DockerManager.getInstance();
this.database = new DatabaseManager(config.database);
this.api = new ApiClient({ baseUrl: config.api.baseUrl, timeout: 60000 });
this.factory = new DataFactory(this.database);
const { host, port, database, user, password } = config.database;
const dbUrl = `postgresql://${user}:${password}@${host}:${port}/${database}`;
this.factory = new DataFactory(dbUrl);
}
/**
@@ -62,10 +65,10 @@ export class IntegrationTestHarness {
await this.docker.start();
// Wait for database to be ready
await this.database.waitForReady(this.config.timeouts.setup);
await this.database.waitForReady(this.config.timeouts?.setup);
// Wait for API to be ready
await this.api.waitForReady(this.config.timeouts.setup);
await this.api.waitForReady(this.config.timeouts?.setup);
console.log('[Harness] ✓ Setup complete - all services ready');
}