You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using comlink to abstract communications with my worker. When I try out workerloader-jest-transformer, comlink.proxy borks trying to create a MessageChannel:
atObject.serialize(node_modules/comlink/src/comlink.ts:219:30)attoWireValue(node_modules/comlink/src/comlink.ts:498:56)atArray.map(<anonymous>)
at processArguments (node_modules/comlink/src/comlink.ts:468:34)
at Object.subscribe [as apply] (node_modules/comlink/src/comlink.ts:435:45)
at ...
Hi @astagi, I'm sorry, I'm probably not going to put time into that, as I am not really using workerloader-jest-transformer, I just tried it out briefly in my worker prototype, and wanted to let you know about the snag I hit.
I'm using comlink to abstract communications with my worker. When I try out
workerloader-jest-transformer
,comlink.proxy
borks trying to create aMessageChannel
:... i.e. here: https://github.com/GoogleChromeLabs/comlink/blob/46f79fc257261b68f8987c5e6b9bd635589758df/src/comlink.ts#L219
Presumably
MessageChannel
needs to be mocked as well?The text was updated successfully, but these errors were encountered: