2026-05-10 23:12:26 +02:00
|
|
|
import { describe, expect, it } from 'vitest';
|
|
|
|
|
|
2026-05-10 23:51:24 +02:00
|
|
|
describe('@ktx/connector-postgres package exports', () => {
|
2026-05-10 23:12:26 +02:00
|
|
|
it('exports the connector, dialect, and live-database adapter', async () => {
|
|
|
|
|
const connector = await import('./index.js');
|
2026-05-10 23:51:24 +02:00
|
|
|
expect(connector.KtxPostgresDialect).toBeTypeOf('function');
|
|
|
|
|
expect(connector.KtxPostgresScanConnector).toBeTypeOf('function');
|
|
|
|
|
expect(connector.KtxPostgresHistoricSqlQueryClient).toBeTypeOf('function');
|
2026-05-10 23:12:26 +02:00
|
|
|
expect(connector.createPostgresLiveDatabaseIntrospection).toBeTypeOf('function');
|
2026-05-10 23:51:24 +02:00
|
|
|
expect(connector.isKtxPostgresConnectionConfig).toBeTypeOf('function');
|
2026-05-10 23:12:26 +02:00
|
|
|
expect(connector.postgresPoolConfigFromConfig).toBeTypeOf('function');
|
|
|
|
|
});
|
|
|
|
|
});
|