ci: fix smoke and artifact checks

This commit is contained in:
Andrey Avtomonov 2026-05-14 01:03:47 +02:00
parent 9c73cabb8b
commit a61bbd21e0
3 changed files with 11 additions and 6 deletions

View file

@ -281,7 +281,7 @@ describe('runKtxDoctor', () => {
'ingest:',
' adapters:',
' - live-database',
' - historic-sql',
' - historic-sql', // pragma: allowlist secret
'',
].join('\n'),
'utf-8',

View file

@ -200,9 +200,13 @@ describe('standalone built ktx CLI smoke', () => {
it('runs doctor setup through the built binary', async () => {
const result = await runBuiltCli(['status', '--no-input']);
expect(result.stdout).toMatch(/KTX (setup|project) doctor/);
expect(result.stdout).toContain('Node 22+');
expect(result.stdout).toContain('Workspace-local CLI');
expect(result.stdout).toMatch(/KTX (setup doctor|project doctor|status)/);
if (result.stdout.includes('No project here yet.')) {
expect(result.stdout).toContain('Before you can run ktx setup');
} else {
expect(result.stdout).toContain('Node 22+');
expect(result.stdout).toContain('Workspace-local CLI');
}
expect(result.stderr === '' || result.stderr.startsWith('Project: ')).toBe(true);
expect([0, 1]).toContain(result.code);
});