You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pester v5 introduced the BeforeDiscovery block, and any module that is
loaded in this context is not loaded when tests actually run. By default
anything outside of any other block run at this time, but to be
explicit, we should put them in a BeforeDiscovery block. This commit
removes the unneeded Import-Module statements from files we're editting
for the PR, as well as moves any variable assignments into
BeforeDiscovery so they're available and explicit.
# Elements that can not be set to an empty string, but are not required
7
8
$emptyFailures=@(
8
9
"projectUrl"
@@ -24,11 +25,11 @@ $invalidFailures = @(
24
25
@{id='licenseUrl'; message="ERROR: CHCU0001: 'invalid license url' is not a valid URL for the licenseUrl element in the package nuspec file." }
25
26
@{id="version"; message="ERROR: CHCU0001: 'INVALID' is not a valid version string in the package nuspec file." }
26
27
@{id="no-content"; message="Cannot create a package that has no dependencies nor content." } # This is a message from NuGet.Client, we may want to take ownership of it eventually.
27
-
@{id="id"; message="The package ID 'invalid id' contains invalid characters. Examples of valid package IDs include 'MyPackage' and 'MyPackage.Sample'." } # This is a message from NuGet.Client, we may want to take ownership of it eventually.
@{id="id"; message="The package ID 'invalid id' contains invalid characters. Examples of valid package IDs include 'MyPackage' and 'MyPackage.Sample'." } # This is a message from NuGet.Client, we may want to take ownership of it eventually.
0 commit comments