Skip to content

test(sonar): parameterize similar tests (S5976) - #3370

Merged
setchy merged 1 commit into
mainfrom
sonar/S5976
Oct 3, 2026
Merged

setchy merged 1 commit into
mainfrom
sonar/S5976

Conversation

@setchy

@setchy setchy commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

SonarCloud: typescript:S5976 (filtered issues)

Resolves Sonar rule typescript:S5976 — Similar tests should be grouped in a single parameterized test (4 issues).

  • checkSuite.test.ts: it.each for the three FAILURE states.
  • Login.test.tsx: it.each for the forge login navigation tests.
  • NotificationTitle.test.tsx: it.each for the render snapshots (names preserved, snapshots unchanged).
  • SystemSettings.test.tsx: consolidated all checkbox-toggle tests into the existing it.each and removed the duplicated test bodies.

Lint, tsc, and the full test suite pass.

@github-actions github-actions Bot added the test Enhancements to test coverage or quality label Oct 3, 2026
@sonarqubecloud

sonarqubecloud Bot commented Oct 3, 2026

Copy link
Copy Markdown

@setchy
setchy marked this pull request as ready for review October 3, 2026 21:05
@setchy
setchy requested a review from afonsojramos as a code owner October 3, 2026 21:05
@setchy
setchy merged commit 5f9b89b into main Oct 3, 2026
27 checks passed
@setchy
setchy deleted the sonar/S5976 branch October 3, 2026 21:07
@github-actions github-actions Bot added this to the Release 7.x.x milestone Oct 3, 2026
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in Gitify v7.9.0! 🎉

Downloads for macOS, Windows, and Linux are available on the release page.

Thanks for helping make Gitify better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Enhancements to test coverage or quality

Development

Successfully merging this pull request may close these issues.

1 participant