#TodayILearned that if you do this:
mock -CommandName get-date -MockWith { get-date -Year 2023 -Month 1 -day 1 }
…then you get:
ScriptCallDepthException: The script failed due to call depth overflow.
#TodayILearned that if you do this:
mock -CommandName get-date -MockWith { get-date -Year 2023 -Month 1 -day 1 }
…then you get:
ScriptCallDepthException: The script failed due to call depth overflow.