Skip to content

Commit 2bc648e

Browse files
CopilotTravisEz13
andcommitted
Fix path separators to use Join-Path for cross-platform compatibility
Co-authored-by: TravisEz13 <[email protected]>
1 parent f97beb1 commit 2bc648e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/packaging/windows/unit/packaging.tests.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
Describe "Packaging Module Functions" {
55
BeforeAll {
6-
Import-Module $PSScriptRoot/../../../../build.psm1 -Force
7-
Import-Module $PSScriptRoot/../../../../tools/packaging/packaging.psm1 -Force
6+
$repoRoot = Join-Path $PSScriptRoot '..' '..' '..' '..'
7+
Import-Module (Join-Path $repoRoot 'build.psm1') -Force
8+
Import-Module (Join-Path $repoRoot 'tools' 'packaging' 'packaging.psm1') -Force
89
}
910

1011
Context "Test-IsPreview function" {

0 commit comments

Comments
 (0)