Skip to content

test: re-sync Manifest.tests.ps1 to canonical template (Module-Dependency variant uplift) #61

@tablackburn

Description

@tablackburn

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

  • ./build.ps1 green; manifest tests run (and the changelog-vs-manifest check skips correctly when this is the template)
  • CI passes on Linux / macOS / Windows + Windows PowerShell 5.1
  • PSScriptAnalyzer clean
  • Manifest.tests.ps1 matches canonical template except documented local divergences

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions