File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Pester tests, see https://github.com/Pester/Pester/wiki
22Import-LocalizedData - BindingVariable manifest - BaseDirectory ./ src/* - FileName (Split-Path $PWD - Leaf)
3- # ensure the right cmdlets are tested
4- $manifest .CmdletsToExport | Get-Command - CommandType Cmdlet - EA 0 | Remove-Item
5- $module = Import-Module ( Resolve-Path . / src /*/ bin / Debug /*/* . psd1) - PassThru - vb
3+ $psd1 = Resolve-Path . / src /*/ bin / Debug /*/* .psd1
4+ if ( 1 -lt ( $psd1 | Measure-Object ).Count) { throw " Too many module binaries found: $psd1 " }
5+ $module = Import-Module " $ psd1" - PassThru - vb
66Describe $module.Name {
77 Context " $ ( $module.Name ) module" - Tag Module {
88 It " Given the module, the version should match the manifest version" {
@@ -32,3 +32,4 @@ Describe $module.Name {
3232 }
3333}.GetNewClosure()
3434$env: Path = $envPath
35+ `
You can’t perform that action at this time.
0 commit comments