Refactored Contribution Analytics mock data to GraphQL fixtures
What does this MR do and why?
Replaces mock data in Contribution Analytics Jest tests with GraphQL fixtures to ensure the right data structures are being used from the backend to the frontend.
Screenshots or screen recordings
No visual changes.
How to set up and validate locally
- Generate GraphQL fixture (if necessary):
bin/rspec ee/spec/frontend/fixtures/analytics/contributions_spec.rb
- Validate that all Jest tests pass:
yarn jest analytics/contribution_analytics
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #391952 (closed)
Edited by Rudy Crespo