Skip to content

test(sonar): document platform-conditional test skips (typescript:S1607) - #208

Merged
setchy merged 2 commits into
mainfrom
fix/sonar/typescript-S1607
Oct 7, 2026
Merged

setchy merged 2 commits into
mainfrom
fix/sonar/typescript-S1607

Conversation

@setchy

@setchy setchy commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Summary

The two test.skip(condition, ...) calls in menubar.e2e.test.ts are intentional cross-platform guards:

  • the macOS test only makes sense on macOS (isVisibleOnAllWorkspaces),
  • the Windows tray-overflow regression only makes sense on Windows.

Rather than deleting platform-specific coverage, a NOSONAR:typescript:S1607 marker now documents why each skip exists.

Findings

SonarQube rule typescript:S1607 flags the conditional test.skip() calls as
ignored tests. Both are deliberate cross-platform guards - the macOS
all-workspaces and Windows tray-overflow regressions can only run on their
own platform - so NOSONAR markers explain why instead of removing them.
@setchy setchy changed the title fix(e2e): address SonarQube typescript:S1607 findings test(sonar): document platform-conditional test skips (typescript:S1607) Oct 3, 2026
@setchy setchy closed this Oct 3, 2026
@setchy setchy reopened this Oct 3, 2026
@setchy
setchy marked this pull request as ready for review October 7, 2026 12:15
@setchy
setchy requested a review from afonsojramos as a code owner October 7, 2026 12:15
@sonarqubecloud

sonarqubecloud Bot commented Oct 7, 2026

Copy link
Copy Markdown

@setchy
setchy merged commit 6360684 into main Oct 7, 2026
28 checks passed
@setchy
setchy deleted the fix/sonar/typescript-S1607 branch October 7, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant