Skip to content

Conversation

@setchy
Copy link
Member

@setchy setchy commented Nov 16, 2025

Significant refactor of tests to consistently

  • use renderWithAppContext (guarantees using primer theme and styles)
  • Naming of any mock objects or mock functions
  • Use defaults in test-utils where possible
  • clearer separation between mock files

@setchy setchy marked this pull request as draft November 16, 2025 20:25
@github-actions github-actions bot added the refactor Refactoring of existing feature label Nov 16, 2025
@setchy setchy changed the title refactor: tests to use custom renderWithAppContext refactor: standardize use of renderWithAppContext and mocks Nov 16, 2025
@setchy setchy marked this pull request as ready for review November 16, 2025 22:03
@sonarqubecloud
Copy link

@setchy setchy merged commit 36d4be8 into main Nov 16, 2025
14 checks passed
@setchy setchy deleted the test/util-render-app-context branch November 16, 2025 22:28
@github-actions github-actions bot added this to the Release 6.14.0 milestone Nov 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactoring of existing feature

Development

Successfully merging this pull request may close these issues.

2 participants