-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
How to test the Chart js components or svgs which need to acquire the context. I'm not seeing anything in documentation. #2532
Comments
Please fill out the entire issue template. I have no idea what "chart js components" or "svgs which need to acquire the context" means. |
I mean, can we test Chart js related components using Enzyme? |
Maybe? I still don't know what that is or what one of those components would look like. |
Take an example of a normal chart, now I want to test on passing correct data and options, Is it rendering or not? |
There is no "normal" react chart. Looking at your codesandbox, I'd probably test App by asserting that it Testing GroupedBar and GroupApexBar, however, aren't particularly easy, because they're wrapping DOM-only non-component charting libraries. GroupApexBar, at least, is only using GroupedBar is harder, because of the I'd suggest using a charting library that's written natively in React, rather than merely abstracting around a non-React one. |
No description provided.
The text was updated successfully, but these errors were encountered: