Closed yannbf closed 1 year ago
Thank you so much for this library! While I was setting it up, I was getting this issue:
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ TypeError: getCanvasWindow is not a function ❯ importMockWindow node_modules/vitest-canvas-mock/dist/index.js:20:24 18| return(res.default || res)}); 19| const canvasWindow = getCanvasWindow({ document: window.document }); 20| apis.forEach((api) => { | ^ 21| global[api] = canvasWindow[api]; 22| global.window[api] = canvasWindow[api];
This PR proposes a fix for that issue.
Thanks!
Hey @wobsoriano, I saw you made a new release but I think the fix didn't get in?
Yeah that's weird 😆
Released another one
Yeah that's weird 😆 Released another one
that worked! <3
Thank you so much for this library! While I was setting it up, I was getting this issue:
This PR proposes a fix for that issue.