Skip to content

refactor: standardize use of renderWithAppContext and mocks#2392

Merged
setchy merged 19 commits intomainfrom
test/util-render-app-context
Nov 16, 2025
Merged

refactor: standardize use of renderWithAppContext and mocks#2392
setchy merged 19 commits intomainfrom
test/util-render-app-context

Conversation

@setchy
Copy link
Copy Markdown
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
Signed-off-by: Adam Setch <adam.setch@outlook.com>
Signed-off-by: Adam Setch <adam.setch@outlook.com>
@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
Signed-off-by: Adam Setch <adam.setch@outlook.com>
Signed-off-by: Adam Setch <adam.setch@outlook.com>
Signed-off-by: Adam Setch <adam.setch@outlook.com>
Signed-off-by: Adam Setch <adam.setch@outlook.com>
Signed-off-by: Adam Setch <adam.setch@outlook.com>
Signed-off-by: Adam Setch <adam.setch@outlook.com>
Signed-off-by: Adam Setch <adam.setch@outlook.com>
Signed-off-by: Adam Setch <adam.setch@outlook.com>
Signed-off-by: Adam Setch <adam.setch@outlook.com>
@setchy setchy changed the title refactor: tests to use custom renderWithAppContext Nov 16, 2025
Signed-off-by: Adam Setch <adam.setch@outlook.com>
Signed-off-by: Adam Setch <adam.setch@outlook.com>
@setchy setchy marked this pull request as ready for review November 16, 2025 22:03
Signed-off-by: Adam Setch <adam.setch@outlook.com>
Signed-off-by: Adam Setch <adam.setch@outlook.com>
Signed-off-by: Adam Setch <adam.setch@outlook.com>
Signed-off-by: Adam Setch <adam.setch@outlook.com>
@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

1 participant