Best practises on How to do Unit / Integration Testing using Pester when APIs Calling is involved

Hi , I am pretty new to Pester Unit / Integration testing.

Currently I have a powershell script which has Invoke-RestMethod included for calling a API. There are other commands like Write-Verbose and someother functions inside it.

Can anyone help me with some reference links where I can learn a bit about the Unit / Integration Testing using Pester when APIs Calling is involved. Some sample tests.

Where should I start first while testing Invoke-RestMethod.
What all things I need to keep in mind.

Thanks

@GVK Welcome to PowerShell.org forums.

Learning Pester by adding tests to a REST API PowerShell module - YouTube might help you.

1 Like

Thank you very much , I will check on that.