File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ $null = New-Item -Path "$PSScriptRoot\foo[1].txt" -Force
12
12
13
13
Import-Module $PSScriptRoot \..\SampleModule.psd1
14
14
15
- $WorkspaceRoot = $pwd
15
+ $WorkspaceRoot = Convert-Path $PSScriptRoot / ..
16
+ Set-Location $WorkspaceRoot
16
17
17
18
Describe ' Verify Path Processing for Non-existing Paths Allowed Impl' {
18
19
It ' Processes non-wildcard absolute path to non-existing file via -Path param' {
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export class PesterTestsFeature implements IFeature {
37
37
let launchConfig = {
38
38
request : "launch" ,
39
39
type : "PowerShell" ,
40
+ name : "PowerShell Launch Pester Tests" ,
40
41
script : "Invoke-Pester" ,
41
42
args : [
42
43
`-Script "${ uri . fsPath } "` ,
@@ -61,6 +62,7 @@ export class PesterTestsFeature implements IFeature {
61
62
utils . getDebugSessionFilePath ( ) ,
62
63
this . sessionManager . getSessionDetails ( ) ) ;
63
64
64
- vscode . commands . executeCommand ( 'vscode.startDebug' , launchConfig ) ;
65
+ // TODO: Update to handle multiple root workspaces.
66
+ vscode . debug . startDebugging ( vscode . workspace . workspaceFolders [ 0 ] , launchConfig ) ;
65
67
}
66
68
}
You can’t perform that action at this time.
0 commit comments