diff --git a/packages/types/src/sdk/datasources.ts b/packages/types/src/sdk/datasources.ts index 536aaa1fb1..63091b7361 100644 --- a/packages/types/src/sdk/datasources.ts +++ b/packages/types/src/sdk/datasources.ts @@ -129,7 +129,7 @@ export interface IntegrationBase { update?(query: any): Promise delete?(query: any): Promise testConnection?(): Promise< - | true + | boolean | { error: string } diff --git a/qa-core/src/integrations/validators/postgres.spec.ts b/qa-core/src/integrations/validators/postgres.spec.ts index a41ed51d9b..b4d811ce18 100644 --- a/qa-core/src/integrations/validators/postgres.spec.ts +++ b/qa-core/src/integrations/validators/postgres.spec.ts @@ -30,7 +30,7 @@ describe("datasource validators", () => { rejectUnauthorized: false, }) const result = await integration.testConnection() - expect(result).toBeTruthy() + expect(result).toBe(true) }) it("test invalid connection string", async () => {