ModuleA\
ModuleA.psd1
ModuleA.psm1
ModuleA.Tests.ps1
Functions\
FunctionA.ps1
FunctionB.ps1
Tests\
FunctionA.Tests.ps1
FunctionB.Tests.ps1
New-Module : Cannot load the module 'Pester' because the module nesting limit has been exceeded. Modules can only be nested to 10
levels. Evaluate and change the order in which you are loading modules to prevent exceeding the nesting limit, and then try
running your script again.
At C:\Program Files\WindowsPowerShell\Modules\Pester\3.4.3\Functions\PesterState.ps1:31 char:5
+ & $SafeCommands['New-Module'] -Name Pester -AsCustomObject -Scrip ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Pester:String) [New-Module], InvalidOperationException
+ FullyQualifiedErrorId : Modules_ModuleTooDeeplyNested,Microsoft.PowerShell.Commands.NewModuleCommand
Since you separate functions, how are those loaded?
--
You received this message because you are subscribed to the Google Groups "Pester" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pester+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to pester+un...@googlegroups.com.