jsdom-worker icon indicating copy to clipboard operation
jsdom-worker copied to clipboard

👷‍♀️ Use Web Workers in Jest / JSDOM 🌈

Results 16 jsdom-worker issues
Sort by recently updated
recently updated
newest added

NOTE: This is not a bot. This change was made by and comments will be reviewed by humans. We are using this service account to be able to track the...

```js console.error node_modules/jsdom-worker/dist/jsdom-inline-worker.js:1 Error: only absolute urls are supported at /Users/aaronvasquez/Oyster/webnode/directories/node_modules/node-fetch/index.js:54:10 at new Promise () at new Fetch (/Users/aaronvasquez/Oyster/webnode/directories/node_modules/node-fetch/index.js:49:9) at Fetch (/Users/aaronvasquez/Oyster/webnode/directories/node_modules/node-fetch/index.js:37:10) at Object..global.fetch (/Users/aaronvasquez/Oyster/webnode/directories/node_modules/jsdom-worker/dist/jsdom-inline-worker.js:1:876) at new Worker (/Users/aaronvasquez/Oyster/webnode/directories/node_modules/jsdom-worker/dist/jsdom-inline-worker.js:1:1780) at...

question

Hi, I'm trying to test my worker inside a Vue.js project. I load the worker inside my component using the [worker-plugin](https://github.com/GoogleChromeLabs/worker-plugin/) (I also tried loading my Worker using [Webpack worker-loader](https://webpack.js.org/loaders/worker-loader/),...

Very helpful library, thanks for creating and maintaining it! I've recently tried using jsdom-worker to test React components using [useWorker](https://github.com/alewin/useWorker) hook and discovered that it uses `worker.terminate()` in certain cases...

I am not 100% sure if my problem really is jsdom-worker related but I guess here is my best starting point: I am currently working on a lerna monorepo where...

This library should be extended to support [Module Workers](https://web.dev/module-workers) and `import.meta.url`.

enhancement

Is it planned to mock URL.revokeObjectURL? Just asking if there is a reason not to include it.

error detail: signal=SIGSEGV, exitCode=null. Operating system logs may contain more information on why this occurred

``` console.error ReferenceError: cov_2a33nrkdo3 is not defined at parseArgs (eval at (/Users/leonardorick/Documents/git/others/utils/javascript/node_modules/jsdom-worker/src/index.js:130:6), :9:3) at Object.eval (eval at (/Users/leonardorick/Documents/git/others/utils/javascript/node_modules/jsdom-worker/src/index.js:130:6), :6:23) at /Users/leonardorick/Documents/git/others/utils/javascript/node_modules/jsdom-worker/src/index.js:139:2 ``` to reproduce you can go to [my repo](https://github.com/LeonardoRick/utils/blob/main/javascript/src/run-on-worker.js)...