Skip to content

Commit 64be2b6

Browse files
authored
Removed unnecessary entries (#55)
- Removed unnecessary entries in module manifest because of this [bug in PowerShell](https://github.com/PowerShell/PowerShell/issues/16750).
1 parent e38e2a4 commit 64be2b6

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Based on [style guidelines](https://dsccommunity.org/styleguidelines/localizatio
3333
- Updated the README.md with new section and updated the links.
3434
- Renamed class files adding a prefix on each file so the task `Generate_Wiki_Content`
3535
works (reported issue https://github.com/dsccommunity/DscResource.DocGenerator/issues/132).
36+
- Removed unnecessary entries in module manifest because of this [bug in PowerShell](https://github.com/PowerShell/PowerShell/issues/16750).
3637

3738
### Removed
3839

build.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Pester:
6565
- Modules/DscResource.Common
6666
Script:
6767
- tests/Unit
68+
- tests/QA
6869
ExcludeTag:
6970
Tag:
7071
CodeCoverageThreshold: 25

source/JeaDsc.psd1

-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
'ConvertTo-Expression'
2323
)
2424

25-
CmdletsToExport = @()
26-
2725
VariablesToExport = @()
2826

2927
AliasesToExport = @()

tests/QA/Module.Tests.ps1

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
$here = $PSScriptRoot
2+
$modulePath = Join-Path -Path $PSScriptRoot -ChildPath ..\..\output\JeaDsc
3+
$psd1 = Import-PowerShellDataFile -Path $ModuleManifestPath
4+
5+
Describe 'Testing Module Manifest' -Tag 'ModuleManifest' {
6+
7+
It "Does not contain key 'CmdletsToExport'" {
8+
$psd1.ContainsKey('CmdletsToExport') | Should Be $false
9+
}
10+
11+
It "Does contain key 'DscResourcesToExport'" {
12+
$psd1.ContainsKey('DscResourcesToExport') | Should Be $true
13+
}
14+
15+
}

0 commit comments

Comments
 (0)