import { expect, tap } from '@git.zone/tstest/tapbundle';
import { createDefaultIntegrationRegistry, DiscoveryEngine } from '../../ts/index.js';

tap.test('runs active discovery across default integrations', async () => {
  const engine = new DiscoveryEngine(createDefaultIntegrationRegistry());
  const candidates = await engine.runActiveDiscovery();
  expect(candidates.some((candidateArg) => candidateArg.integrationDomain === 'hue')).toBeTrue();
});

export default tap.start();
