Background
tests/Manifest.tests.ps1 in this repo is the older Module-Dependency variant inherited from an earlier version of PowerShellModuleTemplate. It has drifted well behind the current canonical template and should be re-synced.
Spun off from #55 (the test-scaffolding re-sync), which deliberately scoped Manifest.tests.ps1 out so the style sweep stayed reviewable.
Divergence (repo vs. canonical template)
|
This repo |
Canonical template |
| Line count |
~196 |
~335 |
tests/ManifestHelpers.psm1 |
absent |
shipped |
Test-VersionConstraint SemVer helper |
absent |
used (3 call sites) |
$isTemplate skip guard |
absent |
$isTemplate = Test-Path -LiteralPath (Join-Path … 'CHANGELOG.template.md'), applied via -Skip:$isTemplate |
Join-Path parameter |
-Child (non-canonical abbreviation, line 163) |
-ChildPath |
Scope
Acceptance
Related
Background
tests/Manifest.tests.ps1in this repo is the older Module-Dependency variant inherited from an earlier version of PowerShellModuleTemplate. It has drifted well behind the current canonical template and should be re-synced.Spun off from #55 (the test-scaffolding re-sync), which deliberately scoped
Manifest.tests.ps1out so the style sweep stayed reviewable.Divergence (repo vs. canonical template)
tests/ManifestHelpers.psm1Test-VersionConstraintSemVer helper$isTemplateskip guard$isTemplate = Test-Path -LiteralPath (Join-Path … 'CHANGELOG.template.md'), applied via-Skip:$isTemplateJoin-Pathparameter-Child(non-canonical abbreviation, line 163)-ChildPathScope
tests/Manifest.tests.ps1from the current template (post-fix: Validate PSScriptAnalyzer availability and harden WhatIf tests #36 canonical style: name parameters only on 2+ argument calls).tests/ManifestHelpers.psm1(required by the new manifest test forTest-VersionConstraint).-Child→-ChildPathabbreviation.Help.tests.ps1(preserve repo-specific bootstrap; adopt canonical everywhere else).Acceptance
./build.ps1green; manifest tests run (and the changelog-vs-manifest check skips correctly when this is the template)Manifest.tests.ps1matches canonical template except documented local divergencesRelated