PowerTip: Use Pester to Test Functions in Module

Doctor Scripto

Summary: Use Pester to test new functions in your module.

Hey, Scripting Guy! Question How can I unit test a non-exported function in my script module?

Hey, Scripting Guy! Answer Use the InModuleScope command to execute some or all of your Pester script within the scope of
           the module you’re testing.