refactor: remove legacy ktx compatibility shims (#211)

* refactor: remove legacy ktx compatibility shims

* fix: restore overlay collision guidance
This commit is contained in:
Andrey Avtomonov 2026-05-24 16:57:23 +02:00 committed by GitHub
parent a954a29a76
commit 96952fb43c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
59 changed files with 294 additions and 342 deletions

View file

@ -26,6 +26,33 @@ describe('runtime requirement detection', () => {
);
});
it('does not treat stale local Looker driver aliases as Looker sources', () => {
const config: KtxProjectConfig = {
...buildDefaultKtxProjectConfig(),
connections: {
stale: { driver: 'local_looker' } as never,
},
};
expect(resolveProjectRuntimeRequirements(config).features).toEqual([]);
expect(
resolvePublicIngestRuntimeRequirements({
projectDir: '/tmp/project',
warnings: [],
targets: [
{
connectionId: 'stale',
driver: 'local_looker',
operation: 'source-ingest',
adapter: 'local_looker',
debugCommand: 'ktx ingest stale --debug',
steps: ['source-ingest'],
},
],
}).features,
).toEqual([]);
});
it('requires core for query-history ingest unless SQL analysis is externally configured', () => {
const config: KtxProjectConfig = {
...buildDefaultKtxProjectConfig(),