Skip to content

Commit f5c3354

Browse files
Fix Pester Test/Debug code lenses to now change directory (#3852)
We're passing the full path of the test file to the invocation script, so we do not need to (nor should we, as it could be difficult to workaround) change the location before running the tests. This just means not passing a value for `cwd` in the launch configuration.
1 parent 48e5295 commit f5c3354

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/features/PesterTests.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,7 @@ export class PesterTestsFeature implements vscode.Disposable {
9191
],
9292
internalConsoleOptions: "neverOpen",
9393
noDebug: (launchType === LaunchType.Run),
94-
createTemporaryIntegratedConsole: settings.debugging.createTemporaryIntegratedConsole,
95-
cwd:
96-
currentDocument.isUntitled
97-
? vscode.workspace.rootPath
98-
: path.dirname(currentDocument.fileName),
94+
createTemporaryIntegratedConsole: settings.debugging.createTemporaryIntegratedConsole
9995
};
10096

10197
if (lineNum) {

0 commit comments

Comments
 (0)