Skip to content

Commit

Permalink
✅ Fix database scripting test
Browse files Browse the repository at this point in the history
  • Loading branch information
brianary committed Feb 20, 2024
1 parent 4d6e779 commit 53140ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/Export-DatabaseScripts.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ $skip = !(Test-Path .changes -Type Leaf) ? $false :
if($skip) {Write-Information "No changes to $basename" -infa Continue}
Describe 'Export-DatabaseScripts' -Tag Export-DatabaseScripts -Skip:$skip {
BeforeAll {
if(!(Get-Module -List dbatools)) {Install-Module dbatools -Force}
$scriptsdir,$sep = (Split-Path $PSScriptRoot),[io.path]::PathSeparator
if($scriptsdir -notin ($env:Path -split $sep)) {$env:Path += "$sep$scriptsdir"}
Mock Export-DbaScript {}
Expand Down

0 comments on commit 53140ff

Please sign in to comment.