Skip to content

Commit 5f58805

Browse files
committed
feat(#194): improve NovaModule test workflow context with enhanced configuration
- Refactor variable assignments for consistency - Update Pester configuration to ensure code coverage targets are applied correctly
1 parent 2193328 commit 5f58805

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

tests/private/quality/GetNovaTestWorkflowContext.Tests.ps1

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ throw "Expected built $script: moduleName module at: $script: distModuleDir. Run
99

1010
Remove-Module $script: moduleName -ErrorAction SilentlyContinue
1111
Import-Module $script: distModuleDir -Force
12+
1213
$script: getTestQualityPesterConfig = {
1314
return [pscustomobject]@{
1415
Run = [pscustomobject]@{
@@ -35,9 +36,11 @@ CoveragePercentTarget = 75
3536
}
3637
}
3738
}
39+
3840
$script: getTestQualityProjectInfo = {
3941
param(
40-
[Parameter(Mandatory)][object]$PesterSettings
42+
[Parameter(Mandatory)]
43+
[object]$PesterSettings
4144
)
4245

4346
return [pscustomobject]@{
@@ -60,7 +63,8 @@ CoveragePercentTarget = 99
6063
})
6164

6265
InModuleScope $script: moduleName -Parameters @{
63-
PesterConfig = $pesterConfig; ProjectInfo = $projectInfo
66+
PesterConfig = $pesterConfig
67+
ProjectInfo = $projectInfo
6468
} {
6569
param($PesterConfig, $ProjectInfo)
6670

@@ -107,7 +111,8 @@ Enabled = $true
107111
})
108112

109113
InModuleScope $script: moduleName -Parameters @{
110-
PesterConfig = $pesterConfig; ProjectInfo = $projectInfo
114+
PesterConfig = $pesterConfig
115+
ProjectInfo = $projectInfo
111116
} {
112117
param($PesterConfig, $ProjectInfo)
113118

0 commit comments

Comments
 (0)