From 3756cd6ad86024da2e43d1fe609669ee616538a6 Mon Sep 17 00:00:00 2001 From: dfinke Date: Wed, 8 Aug 2018 19:40:33 -0400 Subject: [PATCH] set scope --- DoTests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DoTests.ps1 b/DoTests.ps1 index ebf7a25..cf2f0d3 100644 --- a/DoTests.ps1 +++ b/DoTests.ps1 @@ -8,7 +8,7 @@ $dest = "ImportExcel-{0}-{1}.zip" -f $ModuleVersion, (Get-Date).ToString("yyyyMM Compress-Archive -Path . -DestinationPath .\$dest if ((Get-Module -ListAvailable pester) -eq $null) { - Install-Module -Name Pester -Repository PSGallery -Force + Install-Module -Name Pester -Repository PSGallery -Force -Scope CurrentUser } $result = Invoke-Pester -Script $PSScriptRoot\__tests__ -Verbose -PassThru