From d28b1ed714be4a5e1cc62edef61517dbb08d98a7 Mon Sep 17 00:00:00 2001 From: JensGJ Date: Sat, 9 Dec 2023 00:11:10 +0100 Subject: [PATCH] Updated test file Invoke-Build was failing with Pester 5.5 - it requires a BeforeAll section. Added a write-verbose to avoid an error (PSUseDeclaredVarsMoreThanAssignments) from the script analyzer --- tests/Module.Manifest.Tests.ps1 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/Module.Manifest.Tests.ps1 b/tests/Module.Manifest.Tests.ps1 index d7bbb3f..6261568 100644 --- a/tests/Module.Manifest.Tests.ps1 +++ b/tests/Module.Manifest.Tests.ps1 @@ -1,6 +1,8 @@ -. $PSScriptRoot\_InitializeTests.ps1 - -$Manifest = Import-PowerShellDataFile -Path $ModuleManifestPath +BeforeAll { + . $PSScriptRoot\_InitializeTests.ps1 + $Manifest = Import-PowerShellDataFile -Path $ModuleManifestPath + Write-Verbose $Manifest +} Describe "<%=$PLASTER_PARAM_ModuleName%> Module Manifest" {