File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646 run : |
4747 # Test module manifest
4848 $manifestPath = "./src/PSBlogger.psd1"
49- $manifestDefinition = "./src/PSBlogger.psm1"
5049 Write-Host "Testing module manifest at: $manifestPath"
5150
5251 # Test manifest syntax
6665 }
6766
6867 # Test that the module can be imported successfully
69- Import-Module $manifestDefinition -Force
68+ # Use absolute path to the manifest file
69+ $manifestAbsolutePath = Resolve-Path $manifestPath
70+ Import-Module $manifestAbsolutePath -Force
7071 $loadedModule = Get-Module PSBlogger
7172 Write-Host "Successfully imported module. Exported commands:"
7273 $loadedModule.ExportedCommands.Keys | Sort-Object | ForEach-Object { Write-Host " - $_" }
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ PowerShellVersion = '5.1'
4747RequiredModules = @ (" Powershell-yaml" )
4848
4949# Assemblies that must be loaded prior to importing this module
50- RequiredAssemblies = ' '
50+ RequiredAssemblies = @ ()
5151
5252# Script files (.ps1) that are run in the caller's environment prior to importing this module.
5353# ScriptsToProcess = @()
You can’t perform that action at this time.
0 commit comments