Skip to content

Commit 2aeb7a5

Browse files
Remove redundant loading of helper scripts in PSModule.Tests.ps1
1 parent 245e547 commit 2aeb7a5

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

scripts/tests/Module/PSModule/PSModule.Tests.ps1

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,6 @@ Param(
88
[string] $Path
99
)
1010

11-
BeforeAll {
12-
LogGroup "Load module from path [$Path]" {
13-
$helperPath = "$PSScriptRoot/../../../helpers"
14-
Get-ChildItem -Path $helperPath -Filter '*.ps1' -Recurse | ForEach-Object {
15-
. $_.FullName
16-
}
17-
18-
$moduleName = Split-Path -Path $Path -Leaf
19-
Write-Verbose "[$moduleName] - Processing" -Verbose
20-
$manifestFilePath = Join-Path -Path $Path "$moduleName.psd1"
21-
22-
Write-Verbose " - Manifest file path: [$manifestFilePath]" -Verbose
23-
Resolve-PSModuleDependency -ManifestFilePath $manifestFilePath
24-
}
25-
}
26-
2711
Describe 'PSModule - Module tests' {
2812
Context 'Module' {
2913
It 'The module should be importable' {

0 commit comments

Comments
 (0)