#TodayILearned that in Pester, the Assert-MockCalled counts up calls to the mock within the Context or the Describe by default
You have to do ‘-Scope It’ to restrict it to your individual ‘It’ test
Dunno if the same is true for ‘Should -Invoke’
#TodayILearned that in Pester, the Assert-MockCalled counts up calls to the mock within the Context or the Describe by default
You have to do ‘-Scope It’ to restrict it to your individual ‘It’ test
Dunno if the same is true for ‘Should -Invoke’