Commit 7019cd9
Stop test command shims leaking into the global scope
Remove-Item does not accept a 'global:' scope qualifier in a provider path,
so the AfterAll cleanup silently failed and left the Find-PSResource,
Publish-PSResource, Resolve-PSModuleDependency, gh, and git shims in the
global scope. Later test files then resolved the shims instead of the real
commands, which failed Get-NextPrereleaseNumber with 'A parameter cannot be
found that matches parameter name Prerelease'.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent 41f022c commit 7019cd9
2 files changed
Lines changed: 9 additions & 5 deletions
File tree
- .github/actions
- Publish-PSModule/tests
- Release-PSModule/tests
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
0 commit comments