We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efc79e0 commit ebbaa55Copy full SHA for ebbaa55
packages/socket/src/streamingsocket.spec.ts
@@ -68,6 +68,12 @@ const enabled = !!globalThis.process?.env.SOCKETSERVER_ENABLED;
68
subscription.unsubscribe();
69
done();
70
},
71
+ error: (err) => {
72
+ // err is an ErrorEvent but we don't get types for that
73
+ done.fail(
74
+ `Unexpected error in events stream: "${err.message}" / "${err.error}" / code=${err.code} / JSON=${JSON.stringify(err)} (${err})`,
75
+ );
76
+ },
77
});
78
79
(async () => {
0 commit comments