Commit 5e217a1
authored
π [Docs]: Document the Pester major-version lock for test files (#57)
The PowerShell Test Specification now documents how test files pin the
Pester framework, so contributors declare the same major-version lock
everywhere.
## Changed: the Test Specification documents the Pester version lock
A new "Pester version" section shows the requirement each `*.Tests.ps1`
file declares:
```powershell
#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*' }
```
It explains that any `6.x` is accepted, that the Invoke-Pester action
installs a matching version, and that GUID identity-pinning is an
optional, separate control rather than part of the default lock.
## Technical Details
- Adds a "Pester version" section to
`src/docs/PowerShell/Modules/Test-Specification.md`.
- Part of the dependency-management epic PSModule/Process-PSModule#356.1 parent 509c752 commit 5e217a1
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
7 | 20 | | |
8 | 21 | | |
9 | 22 | | |
| |||
0 commit comments