fix(build): tighten TypeScript compatibility and update project build configuration
This commit is contained in:
@@ -81,6 +81,9 @@ tap.test('should be able to tag a connection from client', async (tools) => {
|
||||
return true;
|
||||
})
|
||||
.getTagById('awesome');
|
||||
if (!tagOnServerSide) {
|
||||
throw new Error('Expected server-side tag awesome to exist');
|
||||
}
|
||||
expect(tagOnServerSide.payload).toEqual('yes');
|
||||
});
|
||||
|
||||
@@ -93,7 +96,13 @@ tap.test('should be able to tag a connection from server', async (tools) => {
|
||||
id: 'awesome2',
|
||||
payload: 'absolutely',
|
||||
});
|
||||
if (!testSmartsocketClient.socketConnection) {
|
||||
throw new Error('Expected client socket connection to exist');
|
||||
}
|
||||
const tagOnClientSide = await testSmartsocketClient.socketConnection.getTagById('awesome2');
|
||||
if (!tagOnClientSide) {
|
||||
throw new Error('Expected client-side tag awesome2 to exist');
|
||||
}
|
||||
expect(tagOnClientSide.payload).toEqual('absolutely');
|
||||
});
|
||||
|
||||
@@ -135,6 +144,9 @@ tap.test('should be able to locate a connection tag after reconnect', async (too
|
||||
return true;
|
||||
})
|
||||
.getTagById('awesome');
|
||||
if (!tagOnServerSide) {
|
||||
throw new Error('Expected server-side tag awesome to exist after reconnect');
|
||||
}
|
||||
expect(tagOnServerSide.payload).toEqual('yes');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user