diff --git a/packages/desktop/src/rtl-tests/community.join.test.tsx b/packages/desktop/src/rtl-tests/community.join.test.tsx index 8768895ad5..aa6151d916 100644 --- a/packages/desktop/src/rtl-tests/community.join.test.tsx +++ b/packages/desktop/src/rtl-tests/community.join.test.tsx @@ -116,13 +116,14 @@ describe('User', () => { }, communityHelper.CA ) - const certificate = certificateHelper.userCert.userCertString + const certificate = certificateHelper.userCert?.userCertString const rootCa = communityHelper.CA?.rootCertString return socket.socketClient.emit(SocketActionTypes.SEND_USER_CERTIFICATE, { communityId: payload.communityId, payload: { + // @ts-expect-error - This is statically mocked data so it'll never be undefined certificate: certificate, - // @ts-expect-error + // @ts-expect-error - This is statically mocked data so it'll never be undefined rootCa: rootCa, peers: [], },