Welcome › Forums › Pester › mocking Get-Date
I how can I mock Get-Date? below code does not work but if I change the mock commandname to Get-Test it works.
Should the below code work?
Can you change the $Date variable to some other name and try ?
Thank you. works now. Not sure why it didn’t like $Date variable name.