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

Less invasive handling of unsupported methods

Open G07cha opened this issue 5 years ago • 0 comments

Very helpful library, thanks for creating and maintaining it!

I've recently tried using jsdom-worker to test React components using useWorker hook and discovered that it uses worker.terminate() in certain cases which causes an error and stops tests. I wasn't able to find a way to circumvent this through useWorker hook so was wondering if it's possible to make error when terminate method is used less invasive? For example using console.warn or console.error instead?

G07cha avatar Jul 16 '20 07:07 G07cha