Skip to content

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

  1. Generate GraphQL fixture (if necessary): bin/rspec ee/spec/frontend/fixtures/analytics/contributions_spec.rb
  2. 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.

Related to #391952 (closed)

Edited by Rudy Crespo

Merge request reports

Loading