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've been playing with useWorker, and it has been working on the browser.
I tried to create a test for a custom hook that is using the useWorker and got many errors.
I've tried to install jsdom-worker, but I keep receiving errors.
I'm going to share the errors:
☝️ with jsdom-worker
☝️ without `jsdom-worker`
What kind of setup do I need to do to make it work using jest?
The text was updated successfully, but these errors were encountered:
it('should transform blocks and operations into transactions',async()=>{const{ result }=renderHook(()=>useRecentTransactions({url: WEBSOCKET_URL}),{wrapper: ({ children })=><ContainerProvider>{children}</ContainerProvider>,});console.log(result.current);});
I've been playing with useWorker, and it has been working on the browser.
I tried to create a test for a custom hook that is using the useWorker and got many errors.
I've tried to install
jsdom-worker
, but I keep receiving errors.I'm going to share the errors:
☝️ with
jsdom-worker
☝️ without `jsdom-worker`
What kind of setup do I need to do to make it work using jest?
The text was updated successfully, but these errors were encountered: