From 76146aa8ce77b92d19c0d7e1a1edfb3949563327 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 7 Jul 2026 17:45:37 +0200 Subject: [PATCH 1/2] Require Pester 6.x in test files --- tests/GraphQL.Tests.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/GraphQL.Tests.ps1 b/tests/GraphQL.Tests.ps1 index da22862..2bf46f4 100644 --- a/tests/GraphQL.Tests.ps1 +++ b/tests/GraphQL.Tests.ps1 @@ -1,4 +1,6 @@ -Describe 'GraphQL' { +#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*'; GUID = 'a699dea5-2c73-4616-a270-1f7abb777e71' } + +Describe 'GraphQL' { Context 'Get-PSModule' { It 'should greet the world' { $Name = 'World' From 05ae798061c610af35368fd44591c88d828e54a8 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 7 Jul 2026 21:11:35 +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/GraphQL.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/GraphQL.Tests.ps1 b/tests/GraphQL.Tests.ps1 index 2bf46f4..5271cbf 100644 --- a/tests/GraphQL.Tests.ps1 +++ b/tests/GraphQL.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 'GraphQL' { Context 'Get-PSModule' {