build.psm1 was recently updated to use 'Save-Module' in Restore-PSPester #6112
Side effects of this update broke Docker package validation tests.
Specifically:
-
Now Restore-PSPester requires-Destinationdirectory to exist and throws error if it doesn't; Previously Restore-PSPester was creating it.

-
Default -Destination directory is NOT based on PSModulePath, but rather on a (Get-PSOptions -DefaultToNew).Output, which is not helpful at all since it requires to provide full path to the module in case pwsh is run from an installed package as opposed to built from clone repo.

build.psm1was recently updated to use 'Save-Module' inRestore-PSPester#6112Side effects of this update broke Docker package validation tests.
Specifically:
Now

Restore-PSPesterrequires-Destinationdirectory to exist and throws error if it doesn't; PreviouslyRestore-PSPesterwas creating it.Default

-Destinationdirectory is NOT based onPSModulePath, but rather on a(Get-PSOptions -DefaultToNew).Output, which is not helpful at all since it requires to provide full path to the module in case pwsh is run from an installed package as opposed to built from clone repo.