Skip to content

Commit 9de18e7

Browse files
Require preloaded built module in test bootstrap
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent b1bd689 commit 9de18e7

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

tests/TestBootstrap.ps1

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@ if ($null -eq $yamlModule) {
2121
}
2222

2323
if ($null -eq $yamlModule) {
24-
Get-ChildItem -Path (Join-Path $PSScriptRoot '..\src\functions\private') -Filter '*.ps1' |
25-
Sort-Object Name |
26-
ForEach-Object { . $_.FullName }
27-
28-
Get-ChildItem -Path (Join-Path $PSScriptRoot '..\src\functions\public') -Filter '*.ps1' |
29-
Sort-Object Name |
30-
ForEach-Object { . $_.FullName }
24+
throw 'The Yaml module is not loaded. Test-ModuleLocal must import the built module before tests run.'
3125
}
3226

3327
function Get-TestYamlFingerprintLength {

0 commit comments

Comments
 (0)