Open gthb opened 3 years ago
Hi @gthb can you please share your code or a sample that uses MessageChannel and workerloader-jest-transformer to reproduce your problem?
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?