test(companion): cover platform connected lifecycle integration
This commit is contained in:
@@ -108,6 +108,21 @@ function createRuntime(): CompanionRuntimeClient {
|
||||
}
|
||||
|
||||
describe('platform clients integration', () => {
|
||||
it('platform connected reflects runtime connection lifecycle', async () => {
|
||||
if (!LISTEN_ALLOWED) {
|
||||
return;
|
||||
}
|
||||
|
||||
const runtime = createRuntime();
|
||||
const client = new IOSCompanionClient({ runtime, nodeId: 'ios-connected-e2e' });
|
||||
|
||||
expect(client.connected).toBe(false);
|
||||
await client.connect();
|
||||
expect(client.connected).toBe(true);
|
||||
client.disconnect();
|
||||
expect(client.connected).toBe(false);
|
||||
});
|
||||
|
||||
it('macOS companion wrapper registers and writes status with platform pinning', async () => {
|
||||
if (!LISTEN_ALLOWED) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user