Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chartlayer tests #10

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

JakobMiksch
Copy link

@JakobMiksch JakobMiksch commented Jan 10, 2023

  • Attempt to test chart creation within the chartlayer, but it returns long error message:
Error: Not implemented: HTMLCanvasElement.prototype.getContext (without installing the canvas npm package)

[...]

at VirtualConsole.<anonymous> (node_modules/jest-environment-jsdom/node_modules/jsdom/lib/jsdom/virtual-console.js:29:45)
at Object.<anonymous>.platformApi.measureText (node_modules/echarts/node_modules/zrender/lib/core/platform.js:31:41)
at getWidth (node_modules/echarts/node_modules/zrender/lib/contain/text.js:13:29)                                         
  • also mocking changed() does not work yet

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.

1 participant