Skip to content

Commit 1761c89

Browse files
committed
fix: Use backslash instead of forward-slash for Windows PowerShell backward compatibility
1 parent 469afe7 commit 1761c89

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Features:
88

99
- Run Pester tests during the build on Windows PowerShell too, to catch backward-incompatible changes earlier.
1010

11+
Fixes:
12+
13+
- Use backslash instead of forward-slash to import module in Pester tests for Windows PowerShell backward compatibility.
14+
1115
## v1.0.0 - April 13, 2024
1216

1317
Features:

src/ScriptModuleRepositoryTemplate/ScriptModuleRepositoryTemplate.Tests.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using module './ScriptModuleRepositoryTemplate.psm1'
1+
using module '.\ScriptModuleRepositoryTemplate.psm1'
22

33
Describe 'New-PowerShellScriptModuleRepository' {
44
BeforeEach {

src/ScriptModuleRepositoryTemplate/TemplateRepoFiles/src/__NewModuleName__/__NewModuleName__.Tests.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using module './__NewModuleName__.psm1'
1+
using module '.\__NewModuleName__.psm1'
22

33
# UPDATE ME: This is just example code. Replace the code below with your module's tests.
44
Describe 'Get-HelloWorld' {

0 commit comments

Comments
 (0)