Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ param()
$PSStyle.OutputRendering = 'Ansi'

Import-Module -Name 'Helpers' -Force
Import-Module -Name "$PSScriptRoot/ResolveVersion.psm1" -Force
Import-Module -Name "$PSScriptRoot/Resolve-PSModuleVersion.Helpers.psm1" -Force

$actionInput = Read-ActionInput
$config = Get-PublishConfiguration -SettingsJson $actionInput.SettingsJson
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
param()

# Load test data at script scope so it is available during Pester discovery (-ForEach)
$TestData = Import-PowerShellDataFile -Path "$PSScriptRoot/ResolveVersion.Tests.Data.psd1"
$TestData = Import-PowerShellDataFile -Path "$PSScriptRoot/Resolve-PSModuleVersion.Helpers.Tests.Data.psd1"

BeforeAll {
# Install PSSemVer for version handling
Expand All @@ -25,7 +25,7 @@ BeforeAll {
}

# Import the module under test
Import-Module -Name "$PSScriptRoot/../scripts/ResolveVersion.psm1" -Force
Import-Module -Name "$PSScriptRoot/../scripts/Resolve-PSModuleVersion.Helpers.psm1" -Force
}

Describe 'Resolve-ReleaseDecision' {
Expand Down Expand Up @@ -92,7 +92,7 @@ Describe 'Resolve-ReleaseDecision' {

Describe 'Get-NextModuleVersion' {
BeforeAll {
Mock -CommandName Find-PSResource -ModuleName ResolveVersion -MockWith { @() }
Mock -CommandName Find-PSResource -ModuleName 'Resolve-PSModuleVersion.Helpers' -MockWith { @() }
$emptyReleases = @([PSCustomObject]@{ tagName = 'v0.0.0'; isLatest = $false; isPrerelease = $false })
}

Expand Down Expand Up @@ -133,7 +133,7 @@ Describe 'Get-NextModuleVersion' {

Describe 'End-to-end: Resolve-ReleaseDecision + Get-NextModuleVersion' {
BeforeAll {
Mock -CommandName Find-PSResource -ModuleName ResolveVersion -MockWith { @() }
Mock -CommandName Find-PSResource -ModuleName 'Resolve-PSModuleVersion.Helpers' -MockWith { @() }
$emptyReleases = @([PSCustomObject]@{ tagName = 'v0.0.0'; isLatest = $false; isPrerelease = $false })
}

Expand Down