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

fix(DataTable): mock Canvas and remove dependency #13972

Merged
merged 3 commits into from
Jun 12, 2023

Conversation

francinelucca
Copy link
Collaborator

Closes #13964

Removes canvas dependency and mocks the function for testing instead

Changelog

Changed

  • Mocking HTMLCanvasElement.getContext in Datatable tests

Removed

  • canvas devDependency

Testing / Reviewing

All tests should pass and no errors should show up when installing or running tests locally. Should also have no visual/behavioral regressions

@netlify
Copy link

netlify bot commented Jun 12, 2023

Deploy Preview for carbon-components-react ready!

Name Link
🔨 Latest commit 3b4c34e
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/6487590b8ce7720008721fa3
😎 Deploy Preview https://deploy-preview-13972--carbon-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jun 12, 2023

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 3b4c34e
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/6487590b6af4c20008973b28
😎 Deploy Preview https://deploy-preview-13972--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@alisonjoseph alisonjoseph left a comment

Choose a reason for hiding this comment

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

Install and tests working for me!
Screenshot 2023-06-12 at 11 59 20 AM

Copy link
Member

@tay1orjones tay1orjones left a 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!

@imp-dance
Copy link
Contributor

imp-dance commented Jun 12, 2023

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

@kodiakhq kodiakhq bot merged commit 67c7aa7 into carbon-design-system:main Jun 12, 2023
francinelucca added a commit to francinelucca/carbon that referenced this pull request Jun 12, 2023
…em#13972)

* fix(DataTable): mock Canvas and remove dependency

* fix: trigger change

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Question]: Is anyone else having issues getting the developer environment set up on silicon Mac processors?
4 participants