File tree Expand file tree Collapse file tree
src/tests/Module/PSModule
tests/outputTestRepo/outputs/module/PSModuleTest Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,6 +82,12 @@ Describe 'PSModule - Module tests' {
8282 $result | Should - Be $true
8383 Write-Host " $ ( $result | Format-List | Out-String ) "
8484 }
85+ It ' Module version folder matches the manifest version' {
86+ $manifest = Import-PowerShellDataFile - Path $moduleManifestPath
87+ $moduleVersionFolder = Split-Path - Path (Split-Path - Path $moduleManifestPath - Parent) - Leaf
88+
89+ $moduleVersionFolder | Should - Be $manifest.ModuleVersion.ToString ()
90+ }
8591 It ' Module Manifest is valid' {
8692 $result = Test-ModuleManifest - Path $moduleManifestPath
8793 $result | Should -Not - Be $null
Original file line number Diff line number Diff line change 11@ {
22 RootModule = ' PSModuleTest.psm1'
3- ModuleVersion = ' 999 .0.0 '
3+ ModuleVersion = ' 3 .0.11 '
44 CompatiblePSEditions = @ (
55 ' Core'
66 ' Desktop'
You can’t perform that action at this time.
0 commit comments