From 1f2ec4b76559a7d02cbfb9ae29a014ecf3bc1bd3 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 7 Jul 2026 17:45:42 +0200 Subject: [PATCH 1/2] Require Pester 6.x in test files --- tests/GUID.Tests.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/GUID.Tests.ps1 b/tests/GUID.Tests.ps1 index 9a1cac6..178d683 100644 --- a/tests/GUID.Tests.ps1 +++ b/tests/GUID.Tests.ps1 @@ -1,4 +1,6 @@ -Describe 'Functions' { +#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*'; GUID = 'a699dea5-2c73-4616-a270-1f7abb777e71' } + +Describe 'Functions' { Context 'Function: Search-Guid' { It 'Search-Guid finds a GUID from a string' { $GUID = 'Test this 123e4567-e89b-12d3-a456-426655440000' | Search-Guid From 7dc38b333c01499eff9aec53a0ae008a744b0e39 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 7 Jul 2026 21:11:38 +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/GUID.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/GUID.Tests.ps1 b/tests/GUID.Tests.ps1 index 178d683..b8bd4f8 100644 --- a/tests/GUID.Tests.ps1 +++ b/tests/GUID.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 'Functions' { Context 'Function: Search-Guid' {