Skip to content

test(sonar): use getBy queries for presence assertions (S9027) - #3364

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

setchy merged 1 commit into
mainfrom
sonar/S9027

Conversation

@setchy

@setchy setchy commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

SonarCloud: typescript:S9027 (filtered issues)

Resolves Sonar rule typescript:S9027 — Testing Library queries should match presence assertions (2 issues).

Changed positive presence assertions in Tooltip.test.tsx from queryBy* to getBy* so missing elements produce proper Testing Library diagnostics (negative assertions stay queryBy*).

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:11
@setchy
setchy requested a review from afonsojramos as a code owner October 3, 2026 21:11
@setchy
setchy enabled auto-merge (squash) October 3, 2026 21:11
@setchy
setchy disabled auto-merge October 3, 2026 21:13
@setchy
setchy merged commit 86b785d into main Oct 3, 2026
27 checks passed
@setchy
setchy deleted the sonar/S9027 branch October 3, 2026 21:13
@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