From 260d5d04e05b09f9273fdde019abde0a40e72459 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 7 Jul 2026 17:40:51 +0200 Subject: [PATCH 1/2] Require Pester 6.x in test files --- tests/Uri.Tests.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Uri.Tests.ps1 b/tests/Uri.Tests.ps1 index 6cd03ec..103179f 100644 --- a/tests/Uri.Tests.ps1 +++ b/tests/Uri.Tests.ps1 @@ -1,4 +1,6 @@ -Describe 'Uri' { +#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*'; GUID = 'a699dea5-2c73-4616-a270-1f7abb777e71' } + +Describe 'Uri' { Context 'Function: ConvertFrom-UriQueryString' { It 'ConvertFrom-UriQueryString - returns empty hashtable for empty input' { From b8e525eaf029b4360825982bc317b56f3764242d Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 7 Jul 2026 21:12:55 +0200 Subject: [PATCH 2/2] Drop the GUID from the Pester requirement The GUID pins module identity (precise pinning), a stricter control than the lock-to-major risk appetite. Keep only the version range. --- tests/Uri.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Uri.Tests.ps1 b/tests/Uri.Tests.ps1 index 103179f..2ae36c1 100644 --- a/tests/Uri.Tests.ps1 +++ b/tests/Uri.Tests.ps1 @@ -1,4 +1,4 @@ -#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*'; GUID = 'a699dea5-2c73-4616-a270-1f7abb777e71' } +#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*' } Describe 'Uri' { Context 'Function: ConvertFrom-UriQueryString' {