The git repo is https://github.com/hustcc/jest-canvas-mock
I can see it implements the methods of the HTMLCanvasElement.prototype, but what if window.HTMLCanvasElement does not exist?
Can anybody explain this?
The git repo is https://github.com/hustcc/jest-canvas-mock
I can see it implements the methods of the HTMLCanvasElement.prototype, but what if window.HTMLCanvasElement does not exist?
Can anybody explain this?