Skip to content

Commit 318b4cc

Browse files
Use the 6.* wildcard for the Pester major-version ceiling
1 parent 1c5f864 commit 318b4cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/docs/PowerShell/Modules/Test-Specification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This document defines the structure and guidelines for writing Pester tests for
99
Lock the test framework to a **major version** so a new Pester major cannot be adopted silently and break every suite at once. Declare it as the first line of each `*.Tests.ps1` file:
1010

1111
```powershell
12-
#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.999.999'; GUID = 'a699dea5-2c73-4616-a270-1f7abb777e71' }
12+
#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*'; GUID = 'a699dea5-2c73-4616-a270-1f7abb777e71' }
1313
```
1414

1515
- `ModuleVersion` + `MaximumVersion` accept any Pester `6.x`, so routine minor and patch updates flow in without a change here — only a new major requires a deliberate, reviewed bump.

0 commit comments

Comments
 (0)