Chart Library: Add initial testing infrastructure and PieChart component tests #41148
+186
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes:
Sets up the initial testing infrastructure for the charts package, including Jest configuration, test environment setup, and initial test cases for the PieChart component. This PR focuses solely on the testing setup, with component behavior fixes and additional tests to follow in subsequent PRs.
cc: @jeherve - have I taken the best approach here? any dependencies I don't actually need (or am missing?) also checking the dir structure first with Jetpack style in keeping the tests close to the components.
Additionally, can I merge with failing tests, as the purpose of this is to highlight what needs to be worked on and fixed up - with the intention of follow up PRs addressing the failing tests. I'm not sure if GH will let me merge this way or not as
Tests / JS tests (pull_request)
is required.Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
This PR sets up the initial testing infrastructure for the charts package. Test failures are intentionally included.