Skip to content

Fixing jsdom exceptions 'Not implemented: HTMLCanvasElement.prototype.getContext'#114

Open
yossyoss wants to merge 3 commits intopablosichert:masterfrom
HiredScore:master
Open

Fixing jsdom exceptions 'Not implemented: HTMLCanvasElement.prototype.getContext'#114
yossyoss wants to merge 3 commits intopablosichert:masterfrom
HiredScore:master

Conversation

@yossyoss
Copy link

Adding null or undefined condition for ellipsis in order to avoid "Not implemented: HTMLCanvasElement.prototype.getContext (without installing the canvas npm package)" during tests
see also here:
hustcc/jest-canvas-mock#2

Copy link

@alaaltoros alaaltoros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants