Skip to content

Commit 6afed85

Browse files
committed
Use Import-Module instead of dot sourcing in terminalEnvironment.test.ts
1 parent 88678d8 commit 6afed85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/platform/terminal/test/node/terminalEnvironment.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ suite('platform - terminalEnvironment', async () => {
4848
// These tests are only expected to work on Windows 10 build 18309 and above
4949
(getWindowsBuildNumber() < 18309 ? suite.skip : suite)('pwsh', async () => {
5050
const expectedPs1 = process.platform === 'win32'
51-
? `try { . "${repoRoot}\\out\\vs\\workbench\\contrib\\terminal\\common\\scripts\\shellIntegration.ps1" } catch {}`
51+
? `try { Import-Module "${repoRoot}\\out\\vs\\workbench\\contrib\\terminal\\common\\scripts\\shellIntegration.ps1" } catch {}`
5252
: `. "${repoRoot}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration.ps1"`;
5353
suite('should override args', async () => {
5454
const enabledExpectedResult = Object.freeze<IShellIntegrationConfigInjection>({

0 commit comments

Comments
 (0)