File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 "Enabled" : true ,
4545 "Path" : [
4646 " src/public/*.ps1" ,
47- " src/private/**/*.ps1"
47+ " src/private/*.ps1" ,
48+ " src/private/*/*.ps1" ,
49+ " src/private/*/*/*.ps1"
4850 ],
4951 "CoveragePercentTarget" : 99 ,
5052 "OutputPath" : " artifacts/coverage.xml" ,
Original file line number Diff line number Diff line change 1+ BeforeAll {
2+ $projectRoot = Split-Path - Parent $PSScriptRoot
3+ $script :projectJson = Get-Content - LiteralPath (Join-Path $projectRoot ' project.json' ) - Raw | ConvertFrom-Json - AsHashtable
4+ }
5+
6+ Describe ' project.json Pester code coverage configuration' {
7+ It ' uses explicit private-source globs so nested helpers stay measurable' {
8+ $script :projectJson.Pester.CodeCoverage.Path | Should - Be @ (
9+ ' src/public/*.ps1'
10+ ' src/private/*.ps1'
11+ ' src/private/*/*.ps1'
12+ ' src/private/*/*/*.ps1'
13+ )
14+ }
15+ }
You can’t perform that action at this time.
0 commit comments