-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(DataTable): mock Canvas and remove dependency #13972
fix(DataTable): mock Canvas and remove dependency #13972
Conversation
✅ Deploy Preview for carbon-components-react ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for looking into this!
Can confirm this seems to fix the issue I was having (#13964). From this branch, I'm now able to get the stack up and running using: # from root
yarn install && yarn build
cd packages/react
yarn storybook |
…em#13972) * fix(DataTable): mock Canvas and remove dependency * fix: trigger change --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Closes #13964
Removes
canvas
dependency and mocks the function for testing insteadChangelog
Changed
HTMLCanvasElement.getContext
inDatatable
testsRemoved
canvas
devDependencyTesting / Reviewing
All tests should pass and no errors should show up when installing or running tests locally. Should also have no visual/behavioral regressions