tests/DummyModule/test/DummyModule.Tests.ps1
#Requires -Modules Pester $testingModule = Get-Item -Path "${PSScriptRoot}\..\..\..\..\testing" Get-Module -Name testing -All | Remove-Module -Force Import-Module $testingModule -Force -ErrorAction Stop Import-ModuleFromPath -Parent Describe "Calling method from DummyModule when imported via Parent parameter" { It "Should return Hello World" { Invoke-MyDummyFunctionForTheTest | Should be 'Hello World!' } } |