Add hub package

This commit is contained in:
2026-05-05 12:03:45 +00:00
commit 42f661beb9
20 changed files with 777 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import { expect, tap } from '@git.zone/tstest/tapbundle';
import { ShxHub } from '../ts/index.js';
tap.test('creates a hub snapshot', async () => {
const hub = new ShxHub();
await hub.start();
const snapshot = hub.getSnapshot();
expect(snapshot.devices.length).toBeGreaterThan(0);
expect(snapshot.agents.length).toEqual(6);
await hub.stop();
});
export default tap.start();