Skip to content

⚙️ [Maintenance]: Module source tests align with latest PowerShell LTS - #419

Merged
Marius Storhaug (MariusStorhaug) merged 1 commit into
mainfrom
remove-no-ternary-test
Jul 25, 2026
Merged

Marius Storhaug (MariusStorhaug) merged 1 commit into
mainfrom
remove-no-ternary-test

Conversation

@MariusStorhaug

Copy link
Copy Markdown
Member

Module source validation no longer carries the obsolete PowerShell 5.1 ternary compatibility rule. PSModule modules targeting the latest PowerShell LTS can use ternary operators without an outdated framework restriction.

Changed: Ternary operators are allowed

The source-code test suite no longer checks for or supports bypassing the retired NoTernary rule. No other source-code rules change.

Technical Details

  • Removed the NoTernary Pester test and its #SkipTest:NoTernary: handling from .github/actions/Test-PSModule/src/tests/SourceCode/PSModule/PSModule.Tests.ps1.
  • This maintenance change was explicitly authorized by direct user request without a linked issue.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants