Pester icon indicating copy to clipboard operation
Pester copied to clipboard

Fix module installation in PowerShell 3 and 4

Open fflaten opened this issue 3 years ago • 0 comments

PR Summary

For some reason Install-Module for Pester 5.1.0+ fails on PowerShell 3 and 4 while testing the module manifest due to an error in a function that's never executed. Not worth figuring out why it's invoked, but fixing the invalid reference to the $SafeCommands-dictionary seems to fix it.

Fix #1791

PR Checklist

  • [x] PR has meaningful title
  • [x] Summary describes changes
  • [x] PR is ready to be merged
    • If not, use the arrow next to Create Pull Request to mark it as a draft. PR can be marked Ready for review when it's ready.
  • [ ] Tests are added/update (if required)
  • [ ] Documentation is updated/added (if required)

fflaten avatar Jul 14 '22 17:07 fflaten