Commit aa6283d
fix(tests): remove PS6+ Start-Job -WorkingDirectory for 5.1 compat
The build.tests.ps1 Compile/Dot-sourced contexts started Wait-Job builds
with Start-Job -WorkingDirectory, a parameter introduced in PowerShell 6.0
that does not exist on Windows PowerShell 5.1. Under the shared workflow's
full 5.1 test run this threw ParameterBindingException, the TestModule never
built, and all 15 downstream assertions failed. The scriptblock already
Set-Location's to the test module source, so -WorkingDirectory was redundant;
removing it is behavior-identical on pwsh and 5.1-safe.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent d552429 commit aa6283d
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | | - | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
80 | | - | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| |||
0 commit comments