We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Set-Location
Push-Location
Pop-Location
1 parent e57a560 commit d16ac61Copy full SHA for d16ac61
tests/build.tests.ps1
@@ -4,7 +4,7 @@ Describe 'Build' {
4
BeforeAll {
5
$tempDir = Join-Path $TestDrive 'TestModule'
6
Copy-Item $PSScriptRoot/fixtures/TestModule $tempDir -Recurse
7
- Set-Location $tempDir
+ Push-Location $tempDir
8
9
# Capture any of the jobs for cleanup later
10
[array]$script:jobs = @()
@@ -14,6 +14,7 @@ Describe 'Build' {
14
}
15
16
AfterAll {
17
+ Pop-Location
18
$jobs | Stop-Job -ErrorAction Ignore
19
$jobs | Remove-Job -ErrorAction Ignore
20
0 commit comments