jsdom-worker
jsdom-worker copied to clipboard
👷♀️ Use Web Workers in Jest / JSDOM 🌈
In order to be allowed to use `import.meta.url` in my jest tests, I turned on the option `--experimental-vm-modules`. But thereby I cannot import jsdom-worker anymore. I have the following stack...
I'm using jsdom-worker to support third party libs that use service workers in a jest runtime. The third party lib uses require all over the place, which causes issues when...
## About the context Vite provides a very convinient way to [import workers](https://vitejs.dev/guide/features.html#web-workers). But I cannot use it, since jest does not support it. The beauty of Vite's workers is,...
The Worker class is implemented but not the SharedWorker one. Is there any plan to implement it ? Thanks !
This might fix #16.
node-fetch use esm with 3.x, which not support with jest now, see the issue here https://github.com/node-fetch/node-fetch/discussions/1503 . So, can we roll back the node-fetch to 2.6 to resolve the problem?