Skip to content

Commit 650765e

Browse files
committed
test(core): use backslash Windows path style in pwsh detection test
Match the file's existing convention for Windows path literals (see line 521: 'C:\Program Files\PowerShell\7\pwsh.exe' and line 613: path.resolve('C:\Windows\System32')).
1 parent 9f671ce commit 650765e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/src/utils/shell-utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ describe('getShellConfiguration', () => {
486486
});
487487

488488
it('should prefer pwsh.exe over powershell.exe when pwsh is available in PATH', () => {
489-
const pwshDir = path.resolve('/Program Files/PowerShell/7');
489+
const pwshDir = path.resolve('C:\\Program Files\\PowerShell\\7');
490490
const pwshPath = path.join(pwshDir, 'pwsh.exe');
491491
vi.stubEnv('PATH', pwshDir);
492492
mockAccessSync.mockImplementation((p: string) => {

0 commit comments

Comments
 (0)