#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. t.co/bg5YQfH6Q…
#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. t.co/bg5YQfH6Q…