Skip to content

Commit

Permalink
oops fix
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Oct 20, 2024
1 parent 2e9e64f commit 9bf94b7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions dbatools.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ if (-not (Test-Path -Path "$script:PSModuleRoot\dbatools.dat") -or $script:seria
. $file.FullName
}

# All internal functions privately available within the toolset
foreach ($file in (Get-ChildItem -Path "$script:PSModuleRoot/private/testing/" -Recurse -Filter *.ps1)) {
. $file.FullName
}

Write-ImportTime -Text "Loading internal commands via dotsource"

# All exported functions
Expand Down
2 changes: 1 addition & 1 deletion private/testing/Get-TestConfig.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function Get-TestConfig {
params(
param(
[string]$LocalConfigPath = "$script:PSModuleRoot/tests/constants.local.ps1"
)
$config = [ordered]@{}
Expand Down
1 change: 1 addition & 0 deletions tests/constants.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
return
# constants
if (Test-Path "$TestConfig.PSModuleRoot/tests/constants.local.ps1") {
Write-Host "Tests will use local constants file: tests\constants.local.ps1." -ForegroundColor Cyan
Expand Down

0 comments on commit 9bf94b7

Please sign in to comment.