diff --git a/build.depend.psd1 b/build.depend.psd1 index 29e4712..a6acd25 100644 --- a/build.depend.psd1 +++ b/build.depend.psd1 @@ -8,7 +8,7 @@ } } 'Pester' = @{ - Version = '5.7.1' + Version = '6.0.1' Parameters = @{ SkipPublisherCheck = $true } diff --git a/tests/Help.tests.ps1 b/tests/Help.tests.ps1 index 97f62a8..3d7b21e 100644 --- a/tests/Help.tests.ps1 +++ b/tests/Help.tests.ps1 @@ -161,7 +161,7 @@ Describe "Test help for <_.Name>" -ForEach $commands { ($commandHelp.Examples.Example.Remarks | Select-Object -First 1).Text | Should -Not -BeNullOrEmpty } - It 'Help link <_> is valid' -ForEach $helpLinks { + It 'Help link <_> is valid' -ForEach $helpLinks -AllowNullOrEmptyForEach { $currentProgressPreference = $ProgressPreference $ProgressPreference = 'SilentlyContinue' $invokeWebRequestParameters = @{ @@ -175,7 +175,7 @@ Describe "Test help for <_.Name>" -ForEach $commands { $statusCode | Should -Be '200' } - Context 'Parameter <_.Name>' -Foreach $commandParameters { + Context 'Parameter <_.Name>' -Foreach $commandParameters -AllowNullOrEmptyForEach { BeforeAll { $parameter = $_ @@ -220,7 +220,7 @@ Describe "Test help for <_.Name>" -ForEach $commands { } } - Context 'Test <_> help parameter help for ' -Foreach $helpParameterNames { + Context 'Test <_> help parameter help for ' -Foreach $helpParameterNames -AllowNullOrEmptyForEach { # Shouldn't find extra parameters in help It 'finds help parameter in code: <_>' { diff --git a/tests/Manifest.tests.ps1 b/tests/Manifest.tests.ps1 index ddf7a18..ece0827 100644 --- a/tests/Manifest.tests.ps1 +++ b/tests/Manifest.tests.ps1 @@ -208,7 +208,7 @@ Describe 'Module manifest' { $changelogVersion -as [Version] | Should -Be ( $manifestData.Version -as [Version] ) } - Context 'Module Dependency' -ForEach $dependencies { + Context 'Module Dependency' -ForEach $dependencies -AllowNullOrEmptyForEach { # This ensures we keep our dependent modules in sync between the manifest file and the requirements # script used to bootstrap and test. BeforeAll {