Skip to content

Commit 4370773

Browse files
eleanorjboydCopilot
andcommitted
Fix test: use case-insensitive path check for activate.ps1 on Windows
On Windows, fs.pathExists is case-insensitive so the code may return 'Activate.ps1' even when only 'activate.ps1' exists on disk. The test assertion should not depend on exact casing of the returned path. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 43e8180 commit 4370773

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/managers/common/utils.getShellActivationCommands.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ suite('getShellActivationCommands', () => {
110110
assert.strictEqual(pwshActivation[0].executable, '&');
111111
assert.ok(pwshActivation[0].args);
112112
assert.ok(
113-
pwshActivation[0].args[0].endsWith('activate.ps1'),
113+
pwshActivation[0].args[0].toLowerCase().endsWith('activate.ps1'),
114114
`Expected path ending with activate.ps1, got: ${pwshActivation[0].args[0]}`,
115115
);
116116
});

0 commit comments

Comments
 (0)